Skip to content

Commit

Permalink
feat(espower-traceur): set sourceRoot option to display relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Aug 26, 2015
1 parent 10f9839 commit 6ce70f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ function espowerTraceur (options) {
return originCompile(contents, opts, srcPath, destPath);
}
var compiled = originCompile(contents, opts, srcPath, destPath);
var espowerOptions = extend({ sourceRoot: options.cwd }, options.espowerOptions);
var espowered = espowerSource(
compiled,
srcPath,
options
espowerOptions
);
return espowered;
};
Expand Down

0 comments on commit 6ce70f0

Please sign in to comment.