fix: disable ProvidePlugin (fixes #7032)
This commit is contained in:
parent
8be048550f
commit
7c8f0c9427
|
@ -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
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue