Skip to content

Conversation

@angry-beaver
Copy link
Contributor

@angry-beaver angry-beaver commented Sep 10, 2025

React 19 compatibility.

This resolves #38
It seems to be an RSPack issue — I couldn’t get React 19 working after compilation with the latest RSPack, though the same setup worked fine with Vite. The root cause is still unclear.

RsPack vs Vite

While RSPack is likely faster, Vite is currently more convenient:

  • A single configuration works for build, tests, and Storybook.

  • The package.json remains clean and minimal.

Tree shaking support

To make the library tree shakable, I added ES modules export.

Bonus

  • Upgraded to Storybook 9 😁

  • Added packageManager field to package.json.

Since v16.13, Node.js is shipping Corepack for managing package managers. This is still an experimental feature, but it's a convenient one.
So new developers will just need to run corepack enable to install correct yarn version. Personally, I prefer pnpm.

@angry-beaver angry-beaver changed the title Added react 19 compability and Tree shaking Added react 19 compability and Tree shaking support Sep 10, 2025
@angry-beaver angry-beaver changed the title Added react 19 compability and Tree shaking support Added React 19 compability and Tree shaking support Sep 10, 2025
@angry-beaver
Copy link
Contributor Author

@odedglas, please take a look when you have a chance.

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.

Add support of React 19

1 participant