Skip to content

Commit

Permalink
fix(cache): add +map suffix to fs entries when sourceMaps enabled (
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Dec 17, 2024
1 parent 0c2c0d0 commit 4dacbf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function getCache(
// Compute cache file path
let cacheName =
`${basename(dirname(topts.filename))}-${filename(topts.filename)}` +
(ctx.opts.sourceMaps ? "+map" : "") +
(topts.interopDefault ? ".i" : "") +
`.${md5(topts.filename)}` +
(topts.async ? ".mjs" : ".cjs");
Expand Down

0 comments on commit 4dacbf1

Please sign in to comment.