rsnext/test/e2e/instrumentation-hook/with-esm-import/pages
Jan Kaifer 80ebfad19d
Handle async require when importing ESM in instrumentation.ts (#47658)
Fixed issue where `require` will return a Promise if (and only if) there
is an ESM module imported in `instrumentation.ts`:
61cd219f15/packages/next/src/server/next-server.ts (L212)

Had to move stuff to async function from constructor, but luckily we
already have `prepare`.
2023-03-30 16:05:26 +00:00
..
index.tsx Handle async require when importing ESM in instrumentation.ts (#47658) 2023-03-30 16:05:26 +00:00