We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ebf5b commit 99a5793Copy full SHA for 99a5793
lib/optimize/ModuleConcatenationPlugin.js
@@ -58,6 +58,11 @@ class ModuleConcatenationPlugin {
58
apply(compiler) {
59
const { _backCompat: backCompat } = compiler;
60
compiler.hooks.compilation.tap("ModuleConcatenationPlugin", compilation => {
61
+ if (compilation.moduleMemCaches) {
62
+ throw new Error(
63
+ "optimization.concatenateModules can't be used with cacheUnaffected as module concatenation is a global effect"
64
+ );
65
+ }
66
const moduleGraph = compilation.moduleGraph;
67
const bailoutReasonMap = new Map();
68
0 commit comments