atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Go back to rollup react plugin

Open Polleps opened this issue 2 years ago • 1 comments

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 avatar Jan 23 '24 11:01 Polleps

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

Polleps avatar Jan 23 '24 12:01 Polleps