Dzoukr / SAFEr.Template

Strongly opinionated modification of amazing SAFE Stack Template for full-stack development in F#.
MIT License
107 stars 15 forks source link

Update to the latest `Vite` #19

Closed lukaszkrzywizna closed 1 year ago

lukaszkrzywizna commented 1 year ago

Hi @Dzoukr,

I've updated vite to the latest version. There is one crucial thing to know: Since version 4.0.2 @vitejs/plugin-react doesn't run fast-refresh correctly for .js files. I've made an issue with the question if this is a bug. One of the workarounds is to set jsxRuntime to classic.

I hope this will be helpful.

Thanks for your amazing work! :)

Dzoukr commented 1 year ago

Hi @lukaszkrzywizna,

yeah, that's the reason I stayed on v4 for Vite + fixed version of plugin-react to 4.0.0. But if this workaround works, then even better! 👏

Thanks!

Dzoukr commented 1 year ago

Published as v4.1.0. Thanks again!