Skip to content

Commit 4dacbf1

Browse files
authored
fix(cache): add +map suffix to fs entries when sourceMaps enabled (#352)
1 parent 0c2c0d0 commit 4dacbf1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cache.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export function getCache(
2222
// Compute cache file path
2323
let cacheName =
2424
`${basename(dirname(topts.filename))}-${filename(topts.filename)}` +
25+
(ctx.opts.sourceMaps ? "+map" : "") +
2526
(topts.interopDefault ? ".i" : "") +
2627
`.${md5(topts.filename)}` +
2728
(topts.async ? ".mjs" : ".cjs");

0 commit comments

Comments
 (0)