Skip to content

Commit

Permalink
fix webpack rules for dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 6, 2022
1 parent 16d6f87 commit 711552a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack-config.ts
Expand Up @@ -1587,7 +1587,7 @@ export default async function getBaseWebpackConfig(
]
: []),
// Alias `next/dynamic` to React.lazy implementation for RSC
...(hasServerComponents
...(hasServerComponents && appDir
? [
{
test: codeCondition.test,
Expand Down

0 comments on commit 711552a

Please sign in to comment.