Skip to content

Conversation

@AlexanderKolberg
Copy link
Member

@AlexanderKolberg AlexanderKolberg commented Jan 19, 2026

Adds source files (.ts, .tsx) to the npm package so sourcemaps actually resolve properly

Right now vitest and similar tools throw hundreds of warnings like "Sourcemap points to missing source files" because the sourcemaps reference .ts files that aren't in the package

Include TypeScript source files (.ts, .tsx) in the npm package files array
to fix sourcemap warnings in downstream projects using vitest or other tools
that try to resolve sourcemap references.

This follows the wagmi/viem approach where source files are bundled alongside
compiled output so sourcemaps can correctly point to original sources.
@cloudflare-workers-and-pages
Copy link

Deploying web-sdk-react-example with  Cloudflare Pages  Cloudflare Pages

Latest commit: 18358ac
Status: ✅  Deploy successful!
Preview URL: https://61a6d4c1.web-sdk-react-example.pages.dev
Branch Preview URL: https://fix-include-source-files-for.web-sdk-react-example.pages.dev

View logs

@AlexanderKolberg AlexanderKolberg changed the title fix: include source files in npm package for sourcemap resolution Include source files in npm package for sourcemap resolution Jan 19, 2026
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.

2 participants