top | item 41867698

(no title)

art0rz | 1 year ago

We maintain a fairly large and complex CRA application, which has been migrated to Vite, but not fully.

Since a lot of changes would be needed and we are very risk averse (heavily regulated industry), we decided to do it piecemeal by first configuring Vite to behave exactly (or as close to as possible) like CRA and later removing these Vite configurations one by one (and making necessary code changes).

Currently our production builds are done through CRA while dev runs Vite. It works really well and minimal code changes were needed.

I've been wanting to release this config publicly to help others migrate to Vite, but have unfortunately not had time to.

discuss

order

geekybiz|1 year ago

Sounds like an interesting approach. I'm sure a gradual approach like the one you mention would be super-helpful for anyone trying to migrate a complicated CRA app. I'm hoping you're able to find time to share in the near future.