Skip to content

Conversation

sommeeeer
Copy link
Contributor

@sommeeeer sommeeeer commented Aug 5, 2025

Add more packages that can be excluded so they don't get copied into the final bundles node_modules. Also add debug to determine which packages actually gets skipped. I've run the E2E successfully. These packages will be skipped now:

  • typescript
  • next/dist/compiled/babel
  • next/dist/compiled/babel-packages
  • next/dist/compiled/amphtml-validator

It will decrease the unzipped folder by 15mb and the zipped one with 4mb:

❯ du -hs * | sort -rh
46M	with-deps
31M	without-deps
11M	lambda-with-deps.zip
7,0M	lambda-without-deps.zip

Copy link

changeset-bot bot commented Aug 5, 2025

🦋 Changeset detected

Latest commit: 0631dd2

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

This PR includes changesets to release 3 packages
Name Type
@opennextjs/aws Patch
app-pages-router Patch
app-router 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 Aug 5, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/aws@950

commit: 0631dd2

Copy link
Contributor

@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.

Thanks!!

@conico974 conico974 merged commit 58789c9 into opennextjs:main Aug 13, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Aug 11, 2025
@sommeeeer
Copy link
Contributor Author

Thanks for the review Nico!

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.

2 participants