Skip to content

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

Merged
huyenltnguyen merged 1 commit intofreeCodeCamp:mainfrom
huyenltnguyen:fix/exclude-jsx-runtime
Mar 19, 2026
Merged

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

Conversation

@huyenltnguyen
Copy link
Copy Markdown
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

@huyenltnguyen huyenltnguyen marked this pull request as ready for review March 19, 2026 20:19
@huyenltnguyen huyenltnguyen requested a review from a team as a code owner March 19, 2026 20:19
@huyenltnguyen huyenltnguyen merged commit 00e03d3 into freeCodeCamp:main Mar 19, 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.

[upgrade]: incompatible with react 19

1 participant