gregberge / loadable-components

The recommended Code Splitting library for React ✂️✨
https://loadable-components.com
MIT License
7.58k stars 376 forks source link

Migrate server to ESM #1003

Closed 7rulnik closed 2 months ago

7rulnik commented 2 months ago

Summary

Fixes https://github.com/gregberge/loadable-components/issues/999

Right now build process for component and sever is different — component uses rollup and server uses babel. I tried to keep it, but probably the best way in future is migration to rollup.

Test plan

image

Also I can battle-test it using our project and webpack