this.line = 1;
this.output = [];
this.keepBreaks = options.keepBreaks;
- this.relativeTo = options.relativeTo;
this.restore = restoreCallback;
this.inputMapTracker = inputMapTracker;
this.outputMap = new SourceMapGenerator();
if (sourceRelativeTo)
sourcePath = path.resolve(path.dirname(sourceRelativeTo), sourcePath);
- return path.normalize(sourcePath) === path.resolve(sourcePath) ?
- path.relative(this.rebaseTo, sourcePath) :
- path.relative(this.rebaseTo, path.join(this.relativeTo, sourcePath));
+ return path.relative(this.rebaseTo, sourcePath);
};
Rebuilder.prototype.rebuildValue = function (list, separator) {