You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
esbuild plugin stops injecting debug IDs after the first rebuild of a context #26098
Create an esbuild.context() with the Sentry esbuild plugin and call rebuild() twice. The first build injects a debug ID into each entry point. The second build does not: the plugin clears its set of already wrapped entry points in setup, which esbuild runs once per context, so on a rebuild every entry point counts as already wrapped and the onResolve hook skips it.
await ctx.rebuild() and check dist/entry.js for a sentry-dbid- marker and //# debugId= comment
await ctx.rebuild() again and check the same file
Expected Result
Every rebuild, including watch mode, injects a debug ID into each entry point and uploads its source map.
Actual Result
From the second build on, the bundles carry no debug ID. The upload warns No source maps found for any of the N matched build artifacts and nothing is uploaded, although source maps were written.
Activity
linear-code commentedon Nov 4, 2026
JS-4065
github-actions commentedon Nov 5, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #26099, which was included in the 11.11.0 release.
fix(bundler-plugins): Inject debug IDs into every esbuild rebuild (ge…