Skip to content

Commit

Permalink
normalizeRelpath to bottom to cleanup diff
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Oct 13, 2022
1 parent 8310290 commit 4da3887
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,6 @@ function writeSourceMaps(file, destPath, callback) {
callback(null, file, sourceMapFile);
}

function normalizeRelpath(fp) {
// Since we only ever operate on relative paths,
// this utility shouldn't need to handle path roots
return path.posix.normalize(fp.replace(/\\/g, '/'));
}

function append(file, comment) {
if (file.isBuffer()) {
file.contents = appendBuffer(file.contents, comment);
Expand Down Expand Up @@ -330,6 +324,12 @@ function appendStream(text) {
}
}

function normalizeRelpath(fp) {
// Since we only ever operate on relative paths,
// this utility shouldn't need to handle path roots
return path.posix.normalize(fp.replace(/\\/g, '/'));
}

module.exports = {
addSourceMaps: addSourceMaps,
writeSourceMaps: writeSourceMaps,
Expand Down

0 comments on commit 4da3887

Please sign in to comment.