We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c165590 commit 3c17465Copy full SHA for 3c17465
packages/next/src/build/webpack-config.ts
@@ -819,7 +819,7 @@ export default async function getBaseWebpackConfig(
819
const shouldIncludeExternalDirs =
820
config.experimental.externalDir || !!config.transpilePackages
821
822
- const pageExtensionsRegex = new RegExp(`\.(${pageExtensions.join('|')})$`)
+ const pageExtensionsRegex = new RegExp(`\\.(${pageExtensions.join('|')})$`)
823
const codeCondition = {
824
test: { or: [/\.(tsx|ts|js|cjs|mjs|jsx)$/, /__barrel_optimize__/] },
825
...(shouldIncludeExternalDirs
0 commit comments