next.js
37ea26bd - Add `require-in-the-middle` to default externals (#70922)

Commit
1 year ago
Add `require-in-the-middle` to default externals (#70922) Closes PACK-3288 Closes https://github.com/vercel/next.js/issues/70424 Sentry uses `open-telemetry`, which uses `require-in-the-middle` which: - overrides the global `Module.prototype.require`, even when bundled - reads `require.cache` which when bundled is Turbopack's registry (not the outer Node.js one) Because of this, `require-in-the-middle` is broken/results in a broken environment when it's bundled (e.g. via `instrumentation.js`).
Author
Parents
Loading