Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 0c57d72

Browse files
committed
sourceMapSources correct
1 parent f936c76 commit 0c57d72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node-es-module-loader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ NodeESModuleLoader.prototype[RegisterLoader.instantiate] = function(key, metadat
9898

9999
// evaluate without require, exports and module variables
100100
var path = fileUrlToPath(key) + '!transpiled';
101+
output.map.sources = output.map.sources.map(fileUrlToPath);
101102
sourceMapSources[path] = output.map;
102103
(0,eval)(output.code + '\n//# sourceURL=' + path);
103104
loader[PROCESS_REGISTER_CONTEXT](key);

0 commit comments

Comments
 (0)