Skip to content

feat(nextjs): Inject manifest into client for webpack builds #16857

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 19 commits into from
Jul 15, 2025

Conversation

chargome
Copy link
Member

@chargome chargome commented Jul 9, 2025

ref #16683

This PR injects the manifest into client bundles for webpack.

@chargome chargome self-assigned this Jul 9, 2025
Copy link
Contributor

github-actions bot commented Jul 9, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.88 kB - -
@sentry/browser - with treeshaking flags 22.35 kB - -
@sentry/browser (incl. Tracing) 39.75 kB - -
@sentry/browser (incl. Tracing, Replay) 77.88 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.61 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 82.58 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 94.68 kB - -
@sentry/browser (incl. Feedback) 40.58 kB - -
@sentry/browser (incl. sendFeedback) 28.56 kB - -
@sentry/browser (incl. FeedbackAsync) 33.46 kB - -
@sentry/react 25.61 kB - -
@sentry/react (incl. Tracing) 41.72 kB - -
@sentry/vue 28.31 kB - -
@sentry/vue (incl. Tracing) 41.53 kB - -
@sentry/svelte 23.9 kB - -
CDN Bundle 25.18 kB - -
CDN Bundle (incl. Tracing) 39.44 kB - -
CDN Bundle (incl. Tracing, Replay) 75.44 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 80.91 kB - -
CDN Bundle - uncompressed 73.54 kB - -
CDN Bundle (incl. Tracing) - uncompressed 116.99 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 231.18 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 243.99 kB - -
@sentry/nextjs (client) 43.32 kB - -
@sentry/sveltekit (client) 40.2 kB - -
@sentry/node 167.6 kB - -
@sentry/node - without tracing 100.3 kB - -
@sentry/aws-serverless 128.41 kB - -

View base workflow run

Base automatically changed from cg-next-client-manifest to develop July 11, 2025 13:18
@chargome chargome marked this pull request as ready for review July 13, 2025 15:12
cursor[bot]

This comment was marked as outdated.

@chargome chargome requested review from a team, Lms24 and s1gr1d and removed request for a team and s1gr1d July 14, 2025 14:29
@chargome chargome requested a review from AbhiPrasad July 14, 2025 14:29
cursor[bot]

This comment was marked as resolved.

@chargome chargome merged commit 16d95cd into develop Jul 15, 2025
168 checks passed
@chargome chargome deleted the cg-next-manifest-webpack branch July 15, 2025 08:34
*
* @default false
*/
disableManifestInjection?: boolean;
Copy link
Member

Choose a reason for hiding this comment

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

l/feel free to ignore: I generally prefer enableX with default true over disableX with default false flag patterns but not sure if there's already precedence in other options here. To me the enableX pattern is a bit more intuitive from

  • a user perspective because they can switch on/off a feature without having to invert it in their mind
  • a dev perspective because I don't have to invert the ifs (i.e. if enableX doX()).

But again, this might be just me, so happy to leave this up to you and no objections to going withdisable here.

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