You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(node): Make sure modulesIntegration does not crash esm apps (#14169)
resolves#12500resolves#14165
`modulesIntegration` uses top-level require which will crash ESM apps if
you explicitly import and use the integration.
```mjs
// index.mjs
Sentry.init({
dsn: '__DSN__',
integrations: [
Sentry.modulesIntegration(),
]
});
```
This fixes that by adding a boolean check for cjs apps, and logging out
a warning as a result.
0 commit comments