Thanks to visit codestin.com
Credit goes to github.com

Skip to content

perf: drop babel to reduce the server bundle size #702

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

Closed
wants to merge 1 commit into from
Closed

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Jun 4, 2025

Next 15 pulls ~4MB of Babel dependency.

Adding a patch to drop that.

See the effect on the playground15 example

Before

image

After

image

Copy link

changeset-bot bot commented Jun 4, 2025

🦋 Changeset detected

Latest commit: 0b79bfc

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

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare 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

pkg-pr-new bot commented Jun 4, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@702

commit: 0b79bfc

Copy link
Collaborator

@conico974 conico974 left a comment

Choose a reason for hiding this comment

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

I think we'd want this to be in aws. It has far less effect there, but it's still something we'd want removed directly there

@vicb
Copy link
Contributor Author

vicb commented Jun 4, 2025

I think we'd want this to be in aws. It has far less effect there, but it's still something we'd want removed directly there

I could work on moving it there.

Don't you use runEdgeFunction though?

edit: probably not actually as you run the edge functions on Cloudflare

@vicb
Copy link
Contributor Author

vicb commented Jun 5, 2025

Moved to opennextjs/opennextjs-aws#891

@vicb vicb closed this Jun 5, 2025
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.

3 participants