vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
778 stars 50 forks source link

No options of treating JS as JSX #106

Closed Herob527 closed 1 year ago

Herob527 commented 1 year ago

Currently, I can configure vite esbuild to enforce treating js files as jsx (we have loads of js files with jsx)

But since this plugin disables esbuild options, treating js and jsx separately comes back

ArnaudBarre commented 1 year ago

Yes this will not be supported by this plugin. See https://github.com/vitejs/vite-plugin-react-swc/issues/57#issuecomment-1425931254 for more info