Open Polleps opened 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
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/.
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