Skip to content

Commit

Permalink
Fix source maps: Relative paths instead of abs
Browse files Browse the repository at this point in the history
  • Loading branch information
tadatuta committed Dec 21, 2015
1 parent f9924d1 commit d929cec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion techs/file-merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module.exports = enb.buildFlow.create()
var divider = this._divider;
var sourcemap = this._sourcemap;
var target = this._target;
var node = this.node;

return vow.all(sources.map(function (sourceFilename) {
return vfs.read(sourceFilename, 'utf8');
Expand All @@ -45,7 +46,9 @@ module.exports = enb.buildFlow.create()
return results.join(divider);
}

return joinWithSourceMaps(sources, results, divider, target);
var relFileNames = sources.map(node.relativePath, node);

return joinWithSourceMaps(relFileNames, results, divider, target);
});
})
.createTech();
Expand Down

0 comments on commit d929cec

Please sign in to comment.