Example for preact issue 2773
Minimal reproduction code generation issue with babel and new JSX transformation with preact 10.5.x
release.
See Introducing the New JSX Transform blog post for background on the code generation change.
$ npm install
Then inspect dist/main.js
compiled result.
With improvements to the babel transform process, including babel issue 12557 fixed, sensible code now gets generated:
function App(_ref) {
var style = _ref.style;
return jsxRuntime_module_o("h1", {
style: style,
children: "Title"
});
}