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

export { jsx, jsxs, Fragment };