fix(build) use relative path in file property inside sourcemap
This commit is contained in:
parent
42c0171b40
commit
bc248e9a15
|
@ -33,6 +33,7 @@ function gulpTraceur(options, resolveModuleName) {
|
||||||
var sourceMap = result.sourceMap;
|
var sourceMap = result.sourceMap;
|
||||||
|
|
||||||
if (sourceMap) {
|
if (sourceMap) {
|
||||||
|
sourceMap.file = file.relative;
|
||||||
var sourceMapFile = cloneFile(file, {
|
var sourceMapFile = cloneFile(file, {
|
||||||
path: file.path.replace(/\.\w+$/, '.map'),
|
path: file.path.replace(/\.\w+$/, '.map'),
|
||||||
contents: JSON.stringify(sourceMap)
|
contents: JSON.stringify(sourceMap)
|
||||||
|
|
Loading…
Reference in New Issue