Skip to content

fix(rollup): avoid bundling react/jsx-runtime#754

Draft
huyenltnguyen wants to merge 1 commit intofreeCodeCamp:mainfrom
huyenltnguyen:fix/exclude-jsx-runtime
Draft

fix(rollup): avoid bundling react/jsx-runtime#754
huyenltnguyen wants to merge 1 commit intofreeCodeCamp:mainfrom
huyenltnguyen:fix/exclude-jsx-runtime

Conversation

@huyenltnguyen
Copy link
Member

Checklist:

This PR updates the Rollup config to exclude React internals from the package bundle.

Apparently react/jsx-runtime is included in the bundle, which duplicates React internals and even causes conflicts if the consumers use React 19.

Closes #441

Screenshots of the bundle

Before After
Screenshot 2026-02-13 at 00 34 33 Screenshot 2026-02-12 at 04 31 11

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.

[upgrade]: incompatible with react 19

1 participant