vitejs / vite-plugin-react-swc

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

Mention `devTarget` option in caveats list #212

Closed LoganDark closed 4 months ago

LoganDark commented 4 months ago

It's been two years since that was first written, do you think it may be time to update the default to es2022 already? (If es2020 was good in 2022, maybe es2022 is good in 2024?) Having hidden properties visible in the inspector heavily improves the debugging experience, and it took me a couple days to figure out what was transpiling them out, because I couldn't find anything in the Vite or ESBuild documentation. It only occurred to me today to check this plugin, which solved my issue & immediately resulted in this PR.

ArnaudBarre commented 4 months ago

I need to review what's the current behaviour in core and align with it. There are already multiple issues in core that shows that this is not very clear for now