ArnaudBarre/vite-plugin-react-click-to-component

Doesn't work with Babel transform-react-jsx enabled

Closed this issue · 1 comments

I'm using jsx-control-statements in my project. To make them work in Vite setup, jsx has to be processed with @babel/plugin-transform-react-jsx, as it's discussed here.

And strangely, enabling this transform completely disables this plugin – holding Option does nothing now.

Is it possible to make these two tools work together?

Answered there: vitejs/vite#7927 (reply in thread)

The issue is that you're not using the right transformation for development