workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

Reduce `node_modules` size

Open penalosa opened this issue 1 month ago • 2 comments

Cut the node_modules size for a fresh install of workers-sdk by 400MB from 2.3G to 1.9G. This should speed up CI install times, but there's definitely more work to do. This is a combination of changes to deps and running pnpm dedupe


  • Tests
    • [ ] Tests included/updated
    • [x] Tests not necessary because: existing tests should not fail
  • Public documentation
    • [ ] Cloudflare docs PR(s):
    • [x] Documentation not necessary because: internal detail
  • Wrangler V3 Backport
    • [ ] Wrangler PR:
    • [x] Not necessary because: not user facing

penalosa avatar Nov 28 '25 16:11 penalosa

⚠️ No Changeset found

Latest commit: 0702c18d8b1b503028171df1c3e4dd77906479b8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

changeset-bot[bot] avatar Nov 28 '25 16:11 changeset-bot[bot]

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@11464
@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11464
miniflare

npm i https://pkg.pr.new/miniflare@11464
@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@11464
@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@11464
@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@11464
@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11464
@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11464
@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@11464
wrangler

npm i https://pkg.pr.new/wrangler@11464

commit: 7965855

pkg-pr-new[bot] avatar Nov 28 '25 16:11 pkg-pr-new[bot]