Unverified Commit 5bbcc9e4 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Disable split chunks in webpack 5 in dev mode (#25735)



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.

## Documentation / Examples

- [ ] Make sure the linting passes
parent aada946f
...@@ -835,7 +835,7 @@ export default async function getBaseWebpackConfig( ...@@ -835,7 +835,7 @@ export default async function getBaseWebpackConfig(
checkWasmTypes: false, checkWasmTypes: false,
nodeEnv: false, nodeEnv: false,
splitChunks: isServer splitChunks: isServer
? isWebpack5 ? isWebpack5 && !dev
? ({ ? ({
filename: '[name].js', filename: '[name].js',
// allow to split entrypoints // allow to split entrypoints
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment