Skip to content

fix: exclude react/jsx-runtime from bundle and add smoke test#154

Merged
tam315 merged 2 commits intomainfrom
fix-bundle-miss
Apr 20, 2026
Merged

fix: exclude react/jsx-runtime from bundle and add smoke test#154
tam315 merged 2 commits intomainfrom
fix-bundle-miss

Conversation

@tam315
Copy link
Copy Markdown
Owner

@tam315 tam315 commented Apr 20, 2026

Add react/jsx-runtime to Vite externals so it is never bundled into
the dist output. Add a smoke test that asserts the built .mjs does not
contain React internal symbol strings (react.element,
react.transitional.element), and wire it into CI.

fix #153

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 20, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
react-compare-image ae579ba Commit Preview URL

Branch Preview URL
Apr 20 2026, 06:59 AM

Add react/jsx-runtime to Vite externals so it is never bundled into
the dist output. Add a smoke test that asserts the built .mjs does not
contain React internal symbol strings (react.element,
react.transitional.element), and wire it into CI.

#153
@tam315 tam315 merged commit c44c529 into main Apr 20, 2026
2 checks passed
@tam315 tam315 deleted the fix-bundle-miss branch April 20, 2026 07:00
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.

3.5.x bundles React 19 jsx-runtime, breaking SSR on React 18 hosts (Minified React error #31)

1 participant