Skip to content

Commit

Permalink
Use basename in source map sources field
Browse files Browse the repository at this point in the history
  • Loading branch information
PaperStrike committed May 22, 2022
1 parent 78d103f commit 2a933ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ function updateOutput(
function updateSourceMap(sourceMapText: string, fileName: string) {
const sourceMap = JSON.parse(sourceMapText);
sourceMap.file = fileName;
sourceMap.sources = [fileName];
sourceMap.sources = [basename(fileName)];
delete sourceMap.sourceRoot;
return JSON.stringify(sourceMap);
}
Expand Down

0 comments on commit 2a933ee

Please sign in to comment.