Hyperapp: I have problem while using parceljs

Created on 25 Dec 2017  路  6Comments  路  Source: jorgebucaran/hyperapp

screen shot 2017-12-25 at 7 11 36 pm
I mean like it can't recognise JSX syntax

Inquiry

Most helpful comment

@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?

All 6 comments

@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! 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joshuahiggins picture joshuahiggins  路  4Comments

jamen picture jamen  路  4Comments

jorgebucaran picture jorgebucaran  路  4Comments

jbrodriguez picture jbrodriguez  路  4Comments

Mytrill picture Mytrill  路  4Comments