Babel preset to transform JSX into h() calls.
Via NPM
npm install babel-preset-preact --save-dev
or Yarn
yarn add babel-preset-preact --dev
Make or update your .babelrc config file with the preset:
{
"presets": [
"preact"
]
}
Via package.json
...
"babel": {
"presets": [
"es2015",
"preact"
],
"plugins": [
]
},
...