8000 fix(webpack): disable async chunks in dev mode · nuxt/nuxt@c4bfd0a · GitHub
[go: up one dir, main page]

Skip to content

Commit c4bfd0a

Browse files
committed
fix(webpack): disable async chunks in dev mode
1 parent aed576a commit c4bfd0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/webpack/src/configs/server.ts

Lines changed: 4 additions & 0 deletions
< 7A57 button class="Button Button--iconOnly Button--invisible" aria-label="More options" id="_R_4huql9b_" aria-haspopup="true" aria-expanded="false" tabindex="0">
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ function serverPreset (ctx: WebpackConfigContext) {
3939
splitChunks: false,
4040
minimize: false,
4141
}
42+
43+
if (ctx.isDev) {
44+
ctx.config.output!.asyncChunks = false
45+
}
4246
}
4347

4448
async function serverStandalone (ctx: WebpackConfigContext) {

0 commit comments

Comments
 (0)
0