rsnext/test/e2e/instrumentation-hook
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
..
general Fix instrumentation not being called on edge in some cases (#47495) 2023-03-27 20:54:43 +00:00
with-edge-api Fix instrumentation not being called on edge in some cases (#47495) 2023-03-27 20:54:43 +00:00
with-edge-page Fix instrumentation not being called on edge in some cases (#47495) 2023-03-27 20:54:43 +00:00
with-esm-import Handle async require when importing ESM in instrumentation.ts (#47658) 2023-03-30 16:05:26 +00:00
with-middleware Fix instrumentation not being called on edge in some cases (#47495) 2023-03-27 20:54:43 +00:00
with-node-api Fix instrumentation not being called on edge in some cases (#47495) 2023-03-27 20:54:43 +00:00
with-node-page Fix instrumentation not being called on edge in some cases (#47495) 2023-03-27 20:54:43 +00:00
instrumentation-hook.test.ts Handle async require when importing ESM in instrumentation.ts (#47658) 2023-03-30 16:05:26 +00:00
instrumentation.js Fix instrumentation not being called on edge in some cases (#47495) 2023-03-27 20:54:43 +00:00
tsconfig.json feat: add support for the src folder for the instrumentation hook (#46529) 2023-02-28 12:08:30 +01:00