()
| 1 | export 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 | }; |
no outgoing calls
no test coverage detected
searching dependent graphs…