feat(sourcemap): Add support for injecting Debug IDs #2516
feat(sourcemap): Add support for injecting Debug IDs #2516hyf0 merged 5 commits intorolldown:mainfrom
Conversation
|
Cool, but it seems the proposal only reached stage one, we would like to merge it once the proposal is stable. |
|
Is this feature supported in practice already? Does the maintain toolchain support this feature? If so, it's ok to merge it. |
I recently added the required support to oxc::sourcemap. We've published bundler plugins and polyfills but in the long run it's more efficient to implement directly in each bundler since most already have an internal hashing mechanism that can be used. There's no point hashing every source file twice! This PR still requires tests but I just wanted to confirm this would likely be merged before spending the extra time! |
|
@timfish thanks for the PR and the context - I think this is good to have, assuming debug IDs will just be ignored by tools that don't support them. |
✅ Deploy Preview for rolldown-rs canceled.
|
<!-- Thank you for contributing! --> ### Description #2516 implemented sourcemap debug IDs but it's not exposed to the CLI or `OutputOptions`. This PR fixes this. By the way, it seems like `packages/rollup-tests/test/misc/optionList.js` is not used, do you want me to delete it?
Adds support for injecting debug IDs into source files and sourcemaps as per the TC39 proposal.