Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Nov 10, 2022
1 parent d2ee91c commit 062dafa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,8 @@ export default async function getBaseWebpackConfig(
res,
config.experimental.transpilePackages,
resolvedExternalPackageDirs
) || isEsm
) ||
(isEsm && config.experimental.appDir)

if (/node_modules[/\\].*\.[mc]?js$/.test(res)) {
if (layer === WEBPACK_LAYERS.server) {
Expand Down

0 comments on commit 062dafa

Please sign in to comment.