MCPcopy Index your code
hub / github.com/resend/react-email / importReactDom

Function importReactDom

packages/render/src/edge/import-react-dom.tsx:1–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export const importReactDom = () => {
2 // We don't use async here because tsup converts it to a generator syntax
3 // that esbuild doesn't understand as dealing with the import failing during
4 // bundling: https://github.com/evanw/esbuild/issues/3216#issuecomment-1628913722
5 return import('react-dom/server.edge').catch(
6 () =>
7 // This ensures that we still have compatibility with React 18,
8 // which doesn't have the `.edge` export.
9 import('react-dom/server'),
10 );
11};

Callers 1

renderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected