Skip to content

Commit

Permalink
fix: disable ProvidePlugin (fixes #7032)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Oct 22, 2018
1 parent 894eca2 commit 22ac09a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/ProvidePlugin.js
Expand Up @@ -76,9 +76,11 @@ 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
// normalModuleFactory.hooks.parser
// .for("javascript/esm")
// .tap("ProvidePlugin", handler);
}
);
}
Expand Down

0 comments on commit 22ac09a

Please sign in to comment.