Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion workers/release/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,12 @@ export default class ReleaseWorker extends Worker {

return [ {
mapFileName: file.name,
originFileName: mapContent.file,
/**
* Some bundlers could skip file in the source map content since it duplicates in map name
* Like map name bundle.js.map is a source map for a bundle.js
* @see https://sourcemaps.info/spec.html - format
*/
originFileName: mapContent.file ?? file.name.replace(/\.map$/, ''),
content: mapBodyString,
} ];
});
Expand Down
Loading