Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
fix case for without source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed May 28, 2016
1 parent e6bd7c5 commit f018a60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compilers/esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ exports.compile = function(load, opts, loader) {
output.code = output.code.replace(/(\s|^)System\.register\(/, '$1' + opts.systemGlobal + '.register(');

// for some reason Babel isn't respecting sourceFileName...
output.map.sources[0] = load.path;
if (output.map)
output.map.sources[0] = load.path;

return Promise.resolve({
source: output.code,
Expand Down

0 comments on commit f018a60

Please sign in to comment.