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

Commit 1f59f3f

Browse files
committed
Merge branch 'source-maps'
2 parents d141492 + 2087d50 commit 1f59f3f

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
@@ -1065,6 +1065,8 @@ function logloads(loads) {
10651065
var compiler = new traceur.Compiler();
10661066
var options = System.traceurOptions || {};
10671067
options.modules = 'instantiate';
1068+
options.sourceMaps = true;
1069+
options.filename = load.address;
10681070
var output = compiler.stringToTree({content: load.source, options: options});
10691071
checkForErrors(output);
10701072

@@ -1073,6 +1075,7 @@ function logloads(loads) {
10731075

10741076
output = compiler.treeToString(output);
10751077
checkForErrors(output);
1078+
10761079
var source = output.js;
10771080
var sourceMap = output.generatedSourceMap;
10781081

0 commit comments

Comments
 (0)