disable optimization.removeAvailableModules in development by default
We can't disable it in production yet, as this could be a breaking change.
This commit is contained in:
parent
2e0ce0d1a9
commit
a2c0461e00
|
@ -196,7 +196,12 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
|
|||
);
|
||||
|
||||
this.set("optimization", "call", value => Object.assign({}, value));
|
||||
this.set("optimization.removeAvailableModules", true);
|
||||
// TODO webpack 5: Disable by default in a modes
|
||||
this.set(
|
||||
"optimization.removeAvailableModules",
|
||||
"make",
|
||||
options => options.mode !== "development"
|
||||
);
|
||||
this.set("optimization.removeEmptyChunks", true);
|
||||
this.set("optimization.mergeDuplicateChunks", true);
|
||||
this.set("optimization.flagIncludedChunks", "make", options =>
|
||||
|
|
Loading…
Reference in New Issue