Skip to content

fix(nextjs): Add sideEffects flag to NextJS SDK #4216

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 4 commits into from
Dec 6, 2021

Conversation

AbhiPrasad
Copy link
Member

We have side effects in index.server.ts, so we mark as such in our package.json.

We have side effects in `index.server.ts`, so we mark as such in our
package.json.
@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2021

size-limit report

Path Base Size (dd11cde) Current Size Change
@sentry/browser - CDN Bundle (gzipped) 22.45 KB 22.45 KB +0.02% 🔺
@sentry/browser - Webpack 23.29 KB 23.29 KB 0%
@sentry/react - Webpack 23.32 KB 23.32 KB 0%
@sentry/nextjs Client - Webpack 47.98 KB 47.98 KB 0%
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 29.9 KB 29.9 KB +0.01% 🔺

@AbhiPrasad AbhiPrasad added the Package: nextjs Issues related to the Sentry Nextjs SDK label Dec 3, 2021
Copy link
Member

@lobsterkatie lobsterkatie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I desperately wish they'd finally get around to letting you use comments in package.json... At some point, we might revisit this, because I suspect that long term, this is going to depend on whether or not you're deployed to vercel and/or whether or not you're using tracing. But that's a bridge to cross a different day.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) December 6, 2021 14:18
@AbhiPrasad AbhiPrasad merged commit 9fbd413 into master Dec 6, 2021
@AbhiPrasad AbhiPrasad deleted the abhi-nextjs-side-effect branch December 6, 2021 19:34
onurtemizkan pushed a commit that referenced this pull request Dec 19, 2021
We have side effects in `index.server.ts`, so we mark as such in our
package.json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants