@babel/plugin-transform-react-inline-elements

    Even if ['@babel/plugin-transform-runtime', { helpers: true, polyfill: false }] is specified, it might still break, since helpers come precompiled.

    This transform should be enabled only in production (e.g., just before minifying your code) because, although it improves runtime performance, it makes warning messages more cryptic and skips important checks that happen in development mode, including propTypes.

    Out

    1. Baz,
    2. {
    3. foo: "bar",
    4. },
    5. "1"
    6. );
    7. *
    8. * React.createElement(Baz, {
    9. * foo: "bar",
    10. * key: "1",
    11. * });
    12. */
    1. babel --plugins @babel/plugin-transform-react-inline-elements script.js