We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccc2336 commit 103b4daCopy full SHA for 103b4da
index.js
@@ -38,9 +38,9 @@ module.exports = function(options) {
38
if (map) {
39
// This makes sure the paths in the generated source map (file and
40
// sources) are relative to file.base:
41
- map.file = file.relative;
42
- map.sources = map.sources.map(function (fileName) {
43
- return path.relative(file.base, fileName);
+ map.file = unixStylePath(file.relative);
+ map.sources = map.sources.map(function(fileName) {
+ return unixStylePath(path.relative(file.base, fileName));
44
});
45
file.sourceMap = map;
46
}
@@ -58,3 +58,7 @@ module.exports = function(options) {
58
this.emit('end');
59
60
};
61
+
62
+function unixStylePath(filePath) {
63
+ return filePath.split(path.sep).join('/');
64
+}
0 commit comments