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 9f37b49 commit 39095efCopy full SHA for 39095ef
lib/optimize/ModuleConcatenationPlugin.js
@@ -281,6 +281,10 @@ class ModuleConcatenationPlugin {
281
for (const reason of newModule.reasons) {
282
reason.dependency.module = newModule;
283
}
284
+ // TODO: remove when LTS node version contains fixed v8 version
285
+ // @see https://github.com/webpack/webpack/pull/6613
286
+ // Turbofan does not correctly inline for-of loops with polymorphic input arrays.
287
+ // Work around issue by using a standard for loop and assigning dep.module.reasons
288
for (let i = 0; i < newModule.dependencies.length; i++) {
289
let dep = newModule.dependencies[i];
290
if (dep.module) {
0 commit comments