Skip to content

build: externalize react/jsx-runtime and react-dom/client #938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

KlotzJesse
Copy link
Contributor

Issue Number

Fixes #937

Would be awesome for having a quick merge, because no breaking change, no problem, just removes overhead, reduce bundle size, and also provides a fix.

Overview of PR

Optimizes bundeling sizes, because at the moment react/jsx-runtime is being bundled unnecessary leading to a overhead in production, by externalizing react/jsx-runtime and also for the future react-dom/client

Don't forget to update the CHANGELOG.md file with any changes that are in this PR

@KlotzJesse KlotzJesse changed the title externalize react/jsx-runtime and react-dom/client build: externalize react/jsx-runtime and react-dom/client Nov 22, 2024
@kodobrody
Copy link

Godspeed, thanks!

@Ilaiwi Ilaiwi merged commit cce01b7 into namespace-ee:master Nov 24, 2024
@Ilaiwi
Copy link
Collaborator

Ilaiwi commented Nov 24, 2024

released in 0.30.0-beta.2

@kodobrody
Copy link

@Ilaiwi @KlotzJesse thanks guys, works in next.js 15 (at least the basic example for now)

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.

Beta 0.30 bug: React 19 version mismatch - TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')
3 participants