atomicdata-dev / atomic-server

An open source headless CMS / real-time database. Powerful table editor, full-text search, and SDKs for JS / React / Svelte.
https://atomicserver.eu
MIT License
1.08k stars 49 forks source link

Go back to rollup react plugin #817

Open Polleps opened 10 months ago

Polleps commented 10 months ago

The SWC React vite plugin has some nasty constraints on what we can do in our code. Read more here

Lots of our component files export things other than components. So we lose hot reload in a lot of places. Going back to the rollup version is probably a lot more easy than refactoring a large portion of the codebase

Polleps commented 10 months ago

Hm it seems like it's only the hot reload part that doesn't work, it still updates but it's just less efficient for component files that export other things. Might be worth keeping it like it is to see if this is an actual problem

Tails commented 4 days ago

I've for a long time been happy with Parcel2. It allows you to just include resources (images, WASM, etc) and it will magically bundle all these things without much configuration needed. If I would try something new I would be checking out https://rspack.dev/.