Skip to content

Commit efade5c

Browse files
authored
Merge pull request webpack#6986 from mohsen1/runinctx
Pass file name as part of options hash to vm.runInThisContext
2 parents c1a3676 + 42698d6 commit efade5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node/NodeMainTemplateAsync.runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function() {
1515
var chunk = {};
1616
require("vm").runInThisContext(
1717
"(function(exports) {" + content + "\n})",
18-
filename
18+
{ filename: filename }
1919
)(chunk);
2020
hotAddUpdateChunk(chunk.id, chunk.modules);
2121
});

0 commit comments

Comments
 (0)