Skip to content

Commit

Permalink
fix condition names
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Feb 18, 2023
1 parent bd6eaad commit 36e6ba0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,11 @@ export default async function getBaseWebpackConfig(
: undefined),
mainFields: mainFieldsPerCompiler[compilerType],
...(isEdgeServer && {
conditionNames: mainFieldsPerCompiler[COMPILER_NAMES.edgeServer],
conditionNames: [
...mainFieldsPerCompiler[COMPILER_NAMES.edgeServer],
'import',
'node',
],
}),
plugins: [],
}
Expand Down

0 comments on commit 36e6ba0

Please sign in to comment.