jsx-runtime.js 387 B

12345678
  1. // This module is a simple wrapper around react/jsx-runtime so that
  2. // it can run in Node ESM. 'react' doesn't declare this module as an export map
  3. // So we have to use the .js. The .js is not added via the babel automatic JSX transform
  4. // hence this module as a workaround.
  5. import jsxr from 'react/jsx-runtime.js';
  6. const { jsx, jsxs, Fragment } = jsxr;
  7. export { jsx, jsxs, Fragment };