Skip to content

fix(build): retain extensions in distributed sourcemap metadata - #302

Draft
liuyinchu wants to merge 1 commit into
msgpack:mainfrom
liuyinchu:oss20/fix-distribution-sourcemap-filenames
Draft

liuyinchu wants to merge 1 commit into
msgpack:mainfrom
liuyinchu:oss20/fix-distribution-sourcemap-filenames

Conversation

@liuyinchu

Copy link
Copy Markdown

Preserves the dot when the generated source map records its .cjs or .mjs file name. The published 3.1.3 tarball has indexcjs and indexmjs in this metadata. This leaves sourceMappingURL and module selection unchanged and aligns the README distribution paths with package exports.

Locally verified 34 generated maps, CJS and ESM round trips, and both UMD builds in a Node VM. The TypeScript emit and conversion steps ran explicitly; a real browser and the full Node matrix were not tested. Prepared with AI assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant