Skip to content

Commit b68dfc3

Browse files
committed
bug fix in jsonp template
1 parent a1dfd78 commit b68dfc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/JsonpMainTemplate.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ JsonpMainTemplate.prototype.renderRequireEnsure = function(hash, chunk) {
4848
return [
4949
"// \"0\" is the signal for \"already loaded\"",
5050
"if(installedChunks[chunkId] === 0)",
51-
this.indent("return callback.call(null, require);"),
51+
this.indent("return callback.call(null, " + this.requireFn + ");"),
5252
"",
5353
"// an array means \"currently loading\".",
5454
"if(installedChunks[chunkId] !== undefined) {",

0 commit comments

Comments
 (0)