Skip to content

Commit bfccb20

Browse files
authored
fix PR
1 parent 5a3a23f commit bfccb20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/NormalModule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ NormalModule.prototype.source = function(dependencyTemplates, outputOptions, req
272272
if(varNames.length === 0) return;
273273
varStartCode += "/* WEBPACK VAR INJECTION */(function(" + varNames.join(", ") + ") {";
274274
// exports === this in the topLevelBlock, but exports do compress better...
275-
varEndCode = (topLevelBlock === block ? "}.call(module.exportsArgument || 'exports', " : "}.call(this, ") +
275+
varEndCode = (topLevelBlock === block ? "}.call(" + (topLevelBlock.exportsArgument || "exports") + ", " : "}.call(this, ") +
276276
varExpressions.map(function(e) {
277277
return e.source();
278278
}).join(", ") + "))" + varEndCode;

0 commit comments

Comments
 (0)