fix: disable ProvidePlugin (fixes #7032)

This commit is contained in:
薛定谔的猫 2018-10-22 16:13:03 +08:00 committed by weiran.zsd
parent 8be048550f
commit 7c8f0c9427
No known key found for this signature in database
GPG Key ID: 94A13FCF9ED936BB
1 changed files with 2 additions and 3 deletions

View File

@ -76,9 +76,8 @@ class ProvidePlugin {
normalModuleFactory.hooks.parser
.for("javascript/dynamic")
.tap("ProvidePlugin", handler);
normalModuleFactory.hooks.parser
.for("javascript/esm")
.tap("ProvidePlugin", handler);
// Disable ProvidePlugin for javascript/esm, see https://github.com/webpack/webpack/issues/7032
}
);
}