vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
823 stars 52 forks source link

Add option to specify custom swc options #15

Closed cpakken closed 1 year ago

cpakken commented 1 year ago

I would like to enable decorator compilation. Since this plugin doesn't read tsconfig.json, implement the ability to overwrite the default swc options.

https://swc.rs/docs/configuration/compilation decorators: true

ArnaudBarre commented 1 year ago

I created a pinned issue to track this: https://github.com/vitejs/vite-plugin-react-swc/issues/16