Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(node): Add
registerEsmLoaderHooks
option (#12684)
Currently the only way to disable ESM loader hook registration is to set: ```ts globalThis._sentryEsmLoaderHookRegistered = true; ``` After this PR, you can set the new `registerEsmLoaderHooks` option to `false`: ```ts import * as Sentry from '@sentry/node'; Sentry.init({ dsn: '__DSN__', registerEsmLoaderHooks: false, }); ``` --------- Co-authored-by: Francesco Novy <francesco.novy@sentry.io>
- Loading branch information