We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53c16c8 commit a1dfd78Copy full SHA for a1dfd78
1 file changed
lib/dependencies/CommonJsPlugin.js
@@ -55,6 +55,7 @@ CommonJsPlugin.prototype.apply = function(compiler) {
55
var dep = new ConstDependency("var require;", 0);
56
dep.loc = expr.loc;
57
this.state.current.addDependency(dep);
58
+ this.scope.definitions.push("require");
59
return true;
60
});
61
compiler.parser.plugin("rename require", function(expr) {
0 commit comments