We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b3d018 commit cff436eCopy full SHA for cff436e
1 file changed
lib/node/NodeSourcePlugin.js
@@ -25,7 +25,7 @@ NodeSourcePlugin.prototype.apply = function(compiler) {
25
}
26
if(this.options.global) {
27
compiler.parser.plugin("expression global", function(expr) {
28
- this.state.current.addVariable("global", "(function() { return this; }())");
+ this.state.module.addVariable("global", "(function() { return this; }())");
29
return true;
30
});
31
0 commit comments