Closed sethrubenstein closed 2 years ago
Hi,
The thing is, we don't convert node_modules jsx to createElement call. We do transpile node_modules, but they still have to be valid JavaScript syntax. If you really need this, you can send in a PR with an option to do that.
No worries, I just forked their project and I'm going to just include it in our own components package and thats working.
Thanks!
I feel like I'm going crazy, I'm trying to use some components from https://github.com/10up/block-components and when I import them and build my project I'm getting this error...
I've tried adding
@babel/preset-react
to thejsBabelPresetOptions
config like so...Which I assumed was duplicative as its already being included, this of course did not work.
I tried adding
@babel/plugin-syntax-jsx
to thejsBabelOverride
config like so...But that also did nothing.
What am I missing here, how do I get this import to work?