Skip to content

Files

Latest commit

 

History

History
34 lines (22 loc) · 907 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 907 Bytes

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.

Usage

$ npm install

Then inspect dist/main.js compiled result.

Closing

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"
  });
}