fix(build) use relative path in file property inside sourcemap

This commit is contained in:
Alex Eagle 2015-04-07 12:53:06 -07:00
parent 42c0171b40
commit bc248e9a15
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ function gulpTraceur(options, resolveModuleName) {
var sourceMap = result.sourceMap;
if (sourceMap) {
sourceMap.file = file.relative;
var sourceMapFile = cloneFile(file, {
path: file.path.replace(/\.\w+$/, '.map'),
contents: JSON.stringify(sourceMap)