Dashboardclibuild.ts debug ID injection and sourcem…

build.ts debug ID injection and sourcemaps

Category: architecture
Confidence: 1.00
ID: 01a08a9c-b617-7aca-8f39-2cdb1aebc4c5
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 0N9GEUd1P60OZUYup
Created: 2026-08-22 12:00:32
Updated: 2026-09-10 09:18:41

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 3d ago

Content

Build outputs must always receive a real Sentry debug ID during local and authenticated builds. Chose fixed-length replacement of every PLACEHOLDER_DEBUG_ID over auth-gated injection because local bundles still need debuggability and UUID replacement preserves sourcemap offsets. Gate upload inside the plugin; server deployments must never expose sourcemaps to end users, and maps are deleted only after successful upload. Use esbuild over Bun’s bundler because Bun produced identifier collisions and broken sourcemap names.

Move to: