Skip to content
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: webpack chunks not deduping with sentry #886

Merged

Conversation

james-elicx
Copy link
Contributor

When using sentry, you get a SequenceExpression with the CallExpression inside it. We need to find that CallExpression so we can use it for deduping.

fixes #860

image

Copy link

changeset-bot bot commented Oct 1, 2024

🦋 Changeset detected

Latest commit: 90a94ed

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@cloudflare/next-on-pages Patch
eslint-plugin-next-on-pages Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Oct 1, 2024

🧪 Prereleases are available for testing 🧪

@cloudflare/next-on-pages

You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/11134506626/npm-package-next-on-pages-886

@cloudflare/eslint-plugin-next-on-pages

You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/11134506626/npm-package-eslint-plugin-next-on-pages-886

@james-elicx james-elicx marked this pull request as ready for review October 1, 2024 12:53
@james-elicx james-elicx changed the title fix: webpack chunk dedupe with sentry fix: webpack chunks not deduping with sentry Oct 1, 2024
Copy link
Member

@dario-piotrowicz dario-piotrowicz left a comment

Choose a reason for hiding this comment

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

The change looks good to me, thanks a lot @james-elicx 🫶

Ideally I think the code should be more robust and deal with all the SequenceExpression's expressions, but that doesn't need to be a blocker for this PR

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.

[🐛 Bug]: Sentry bloats up bundle size when building with npx @cloudflare/next-on-pages
2 participants