Skip to content

Commit c165590

Browse files
committed
add dot
1 parent fbd1300 commit c165590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/build/webpack-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ export default async function getBaseWebpackConfig(
819819
const shouldIncludeExternalDirs =
820820
config.experimental.externalDir || !!config.transpilePackages
821821

822-
const pageExtensionsRegex = new RegExp(`(${pageExtensions.join('|')})$`)
822+
const pageExtensionsRegex = new RegExp(`\.(${pageExtensions.join('|')})$`)
823823
const codeCondition = {
824824
test: { or: [/\.(tsx|ts|js|cjs|mjs|jsx)$/, /__barrel_optimize__/] },
825825
...(shouldIncludeExternalDirs

0 commit comments

Comments
 (0)