Skip to content

fix: disable source maps in published packages#337

Merged
bensabic merged 2 commits intomainfrom
josh/disable-sourcemaps
Apr 6, 2026
Merged

fix: disable source maps in published packages#337
bensabic merged 2 commits intomainfrom
josh/disable-sourcemaps

Conversation

@dancer
Copy link
Copy Markdown
Contributor

@dancer dancer commented Apr 6, 2026

summary

SWC fails with failed to read input source map when consuming chat packages installed via Bun's isolated linker, which stores packages in node_modules/.bun/ with symlinks — SWC can't resolve the relative .map file reference through that indirection

sets sourcemap: false in all 14 package tsup configs — published npm packages don't need external source maps, and this eliminates ~400KB from the chat tarball alone

closes #317

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview, Comment, Open in v0 Apr 6, 2026 7:06pm
chat-sdk-nextjs-chat Ready Ready Preview, Comment, Open in v0 Apr 6, 2026 7:06pm

@bensabic bensabic merged commit 8d89274 into main Apr 6, 2026
12 checks passed
@bensabic bensabic deleted the josh/disable-sourcemaps branch April 6, 2026 23:02
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.

Build error: SWC fails to read source map for dist/index.js with Bun

3 participants