Skip to content

Commit 2ba7596

Browse files
author
Mohsen Azimi
committed
Pass file name as part of options hash to vm.runInThisContext
1 parent c1a3676 commit 2ba7596

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 }
1919
)(chunk);
2020
hotAddUpdateChunk(chunk.id, chunk.modules);
2121
});

0 commit comments

Comments
 (0)