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 31, 2018
1 parent 8be0485 commit 7c8f0c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ProvidePlugin.js
Expand Up @@ -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
}
);
}
Expand Down

0 comments on commit 7c8f0c9

Please sign in to comment.