evanw / evanw/esbuild

Add support for sourcemap debug IDs

Open
#3,989 4 comments 5 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
40.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Debug IDs are detailed in the [TC39 proposal](https://github.com/tc39/source-map/blob/main/proposals/debug-id.md).

Debug IDs are unique IDs generated from a deterministic hash of the source code which are then injected/included in both source and sourcemap. They can be used to easily identify the correct sourcemaps in production.

I've recently added support for injecting debug IDs to [webpack](https://github.com/webpack/webpack/pull/18947), [Rollup](https://github.com/rollup/rollup/pull/5712/), and [Rolldown](https://github.com/rolldown/rolldown/pull/2516) and wanted to get them working in esbuild too but I don't really know Go yet!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.