Skip to content

feat(node): Add registerEsmLoaderHooks option #12684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Jun 27, 2024

Currently the only way to disable ESM loader hook registration is to set:

globalThis._sentryEsmLoaderHookRegistered = true;

After this PR, you can set the new registerEsmLoaderHooks option to false:

import * as Sentry from '@sentry/node';

Sentry.init({
  dsn: '__DSN__', 
  registerEsmLoaderHooks: false,
});

@AbhiPrasad AbhiPrasad requested review from a team, AbhiPrasad, s1gr1d and mydea and removed request for a team June 27, 2024 19:35
timfish and others added 2 commits June 28, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants