cra-to-vite
cra-to-vite copied to clipboard
deprecated vite-react-jsx plugin in vite.config.js
Thanks for this tool, but there is one issue. It creates vite.config.js with deprecated plugin vite-react-jsx
, it needs to be replaced with @vitejs/plugin-react
instead. because it causes some hot module replacement problems in vite@latest.
I think vite.config.js should look like this :
see warning in their github repo :
https://github.com/alloc/vite-react-jsx
Hey @Digital-Coder 👋
Glad you like the tool. I created this one there was no official plugin and have not updated after that.
Are you interested in opening a PR? It should be fairly simple and straight forward.
I made these changes ,but how would I test my PR locally ? :D
You can just do node ../path/to/repo
in cra app or use npm link
@jyash97 why didn't this merge yet?