-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix(node): Make sure modulesIntegration does not crash esm apps #14169
Conversation
size-limit report 📦
|
I don't think we can rely on checking at integration creation time and I think much of our current usage of I've seen similar in nextJs where Sentry detects CJS but nextjs is just loading I think we need to remove |
maybe we need this integration to be built to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine to merge. I will open another issue for my concerns once they're properly formed and tested 😂
Yes |
ce068e5
to
e21fc2d
Compare
resolves #12500
resolves #14165
modulesIntegration
uses top-level require which will crash ESM apps if you explicitly import and use the integration.This fixes that by adding a boolean check for cjs apps, and logging out a warning as a result.