What about use the automatic JSX transform
shinxi opened this issue · 0 comments
shinxi commented
Not sure why we don't use the automatic
JSX transform, so that don't need to add import {h, Fragment} from 'preact'
at every component that needs JSX or Fragment.
From
jest-preset-preact/src/babel.js
Lines 15 to 21 in d0decd1
to
[
'@babel/plugin-transform-react-jsx', {
"runtime": "automatic"
},
]