
I mean like it can't recognise JSX syntax
@ookangzheng I am not familiar with how parceljs works, but maybe you need to add something like:
{
"presets": ["env"],
"plugins": [
["transform-react-jsx", { "pragma": "h" }]
]
}
...to your .babelrc file?
Hmm, ya, I also had to install this pkg:
npm i babel-plugin-transform-react-jsx
then the problem was solved.
EDIT: Fixed formatting.
@ookangzheng Great! 馃槃馃憤
I use parceljs with Hyperapp since some days, considering using it on all project. It is really good 馃憤
I created a Hyperapp parceljs bundler with node-sass and postcss supported
https://github.com/ookangzheng/hyperapp-parcel
Wow, this is super useful, thanks @ookangzheng! 馃帀
Most helpful comment
@ookangzheng I am not familiar with how parceljs works, but maybe you need to add something like:
...to your .babelrc file?