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

Commit 2087d50

Browse files
committed
fix source mapsg
1 parent c8cb13c commit 2087d50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/loader.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,8 @@ function logloads(loads) {
10561056
var compiler = new traceur.Compiler();
10571057
var options = System.traceurOptions || {};
10581058
options.modules = 'instantiate';
1059+
options.sourceMaps = true;
1060+
options.filename = load.address;
10591061
var output = compiler.stringToTree({content: load.source, options: options});
10601062
checkForErrors(output);
10611063

@@ -1064,6 +1066,7 @@ function logloads(loads) {
10641066

10651067
output = compiler.treeToString(output);
10661068
checkForErrors(output);
1069+
10671070
var source = output.js;
10681071
var sourceMap = output.generatedSourceMap;
10691072

0 commit comments

Comments
 (0)