We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable @babel/plugin-transform-react-jsx-source
@babel/plugin-transform-react-jsx-source
I would like users to click on React nodes in SandpackPreview and then highlight the code in the SandpackCodeEditor
SandpackPreview
SandpackCodeEditor
Similar to Svelte’s inspector: https://x.com/rich_harris/status/1636444006635716627
For this, there’s this library: https://github.com/ericclemmons/click-to-component
But it relies on a Babel plugin: @babel/plugin-transform-react-jsx-source
I assume I would need to be able to customize the Babel config, or make this an explicit feature of Sandpack?
babel.config.js
{ "plugins": ["@babel/plugin-transform-react-jsx"] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tell us how you think we can improve Sandpack
Enable
@babel/plugin-transform-react-jsx-source
Packages affected
What is this feature?
I would like users to click on React nodes in
SandpackPreview
and then highlight the code in theSandpackCodeEditor
Similar to Svelte’s inspector:
https://x.com/rich_harris/status/1636444006635716627
For this, there’s this library:
https://github.com/ericclemmons/click-to-component
But it relies on a Babel plugin:
@babel/plugin-transform-react-jsx-source
How would your idea work?
I assume I would need to be able to customize the Babel config, or make this an explicit feature of Sandpack?
babel.config.js
{ "plugins": ["@babel/plugin-transform-react-jsx"] }
The text was updated successfully, but these errors were encountered: