Skip to content

Commit 6b733fd

Browse files
author
chuckd
committed
Fix lost context when invoking require()
1 parent 5a56be9 commit 6b733fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dependencies/DepBlockHelpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ DepBlockHelpers.getLoadDepBlockWrapper = function(depBlock, outputOptions, reque
2525
"if(--__WEBPACK_REMAINING_CHUNKS__ < 1) (",
2626

2727
"(__webpack_require__));" +
28-
"};" +
28+
"}.bind(this);" +
2929
chunks.map(function(chunk) {
3030
return "__webpack_require__.e(" + chunk.id + ", __WEBPACK_CALLBACK__);";
3131
}).join("") +
32-
"}())"
32+
"}).call(this)"
3333
];
3434
}
3535
}

0 commit comments

Comments
 (0)