vitejs / vite-plugin-react-swc

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

feat: add ECMA Stage 3 decorator support #222

Closed b3nten closed 3 months ago

b3nten commented 3 months ago

This adds an option for enabling ECMA stage 3 decorators and closes #221

ArnaudBarre commented 3 months ago

Thanks for sending a PR, but I don't want to spend too much time maintaining and following variation of the decorators spec. Evan Wallace has done a fantastic job on the subject, and it mostly shows that the feature is not yet standardized across transpilers. I don't want to make to easy for people to depend on some subtile bugs of transpilers, and this why I prefer to not support it for now, so that people can migrate to OXC easily in the future.

b3nten commented 3 months ago

Ok that's understandable. Wasn't aware SWC's implementation was buggy. Will use the babel transform until Rolldown drops!