Skip to content

Commit

Permalink
fix exclude condition
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed May 27, 2024
1 parent 77da702 commit c3ab20c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,7 @@ export default async function getBaseWebpackConfig(
loggedIgnoredCompilerOptions = true
}

const shouldIncludeExternalDirs =
config.experimental.externalDir || !!config.transpilePackages
const shouldIncludeExternalDirs = config.experimental.externalDir // || !!config.transpilePackages
const codeCondition = {
test: { or: [/\.(tsx|ts|js|cjs|mjs|jsx)$/, /__barrel_optimize__/] },
...(shouldIncludeExternalDirs
Expand Down

0 comments on commit c3ab20c

Please sign in to comment.