vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
834 stars 54 forks source link

Unexpected token `@`. Expected identifier, string literal, numeric literal or [ for the computed key #24

Closed Zhengy1995 closed 1 year ago

Zhengy1995 commented 1 year ago

When I replace @vitejs/plugin-react with @vitejs/plugin-react-swc, it doesn't work well,why or how to config to supports decorator? image

ArnaudBarre commented 1 year ago

Decorator are nor supported by default. Closing in favor of #16