vitejs / vite-plugin-react-swc

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

Breaks with unplugin-swc #67

Closed jiby-aurum closed 1 year ago

jiby-aurum commented 1 year ago

I am using unplugin-swc to use swc to transpile instead of esbuild, to be able to emit typescript decorator metadata. Seemingly this plugin interferes with it, and ends up unplugin-swc to not emit typescript decorator metadata

jiby-aurum commented 1 year ago

seemingly it makes sense, as per comments in https://github.com/vitejs/vite-plugin-react-swc/pull/64, I modified this package, and completely removed unplugin-swc, and it works well.

Would be awesome to see as mentioned in https://github.com/vitejs/vite-plugin-react-swc/pull/64, this plugin ending up as an swc replacement for the esbuild with proper configurability for swc