Skip to content

Commit 2a933ee

Browse files
committed
Use basename in source map sources field
1 parent 78d103f commit 2a933ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ function updateOutput(
16681668
function updateSourceMap(sourceMapText: string, fileName: string) {
16691669
const sourceMap = JSON.parse(sourceMapText);
16701670
sourceMap.file = fileName;
1671-
sourceMap.sources = [fileName];
1671+
sourceMap.sources = [basename(fileName)];
16721672
delete sourceMap.sourceRoot;
16731673
return JSON.stringify(sourceMap);
16741674
}

0 commit comments

Comments
 (0)