Skip to content

build: publish sourcemaps for core, react, vue#36

Merged
ignsm merged 2 commits into
mainfrom
chore/publish-sourcemaps
May 10, 2026
Merged

build: publish sourcemaps for core, react, vue#36
ignsm merged 2 commits into
mainfrom
chore/publish-sourcemaps

Conversation

@ignsm
Copy link
Copy Markdown
Owner

@ignsm ignsm commented May 10, 2026

Enables sourcemap: true in tsup (core, react) and build.sourcemap: true in vite (vue). dist/index.js.map now ships in each tarball alongside dist/index.js.

When FormRenderer throws inside a consumer's app, the stack trace will now point at the original src/ line instead of a one-letter variable in the minified output. Cost: about +40-60 KB of .map per package — never loaded by the runtime, only fetched by devtools when a developer expands a stack frame.

Verified each tarball contains the sourcemap:

$ tar -tzf formhaus-react-0.3.1.tgz | grep map
package/dist/index.js.map

@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2026

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

Project Deployment Actions Updated (UTC)
formhaus Ready Ready Preview, Comment May 10, 2026 2:41pm

Request Review

@ignsm ignsm force-pushed the chore/publish-sourcemaps branch from 6b9f353 to 363a81b Compare May 10, 2026 14:41
@ignsm ignsm merged commit 116de2a into main May 10, 2026
8 checks passed
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.

1 participant