-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Reduce node_modules size
#11464
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
base: main
Are you sure you want to change the base?
Reduce node_modules size
#11464
Conversation
|
petebacondarwin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like an actual failure in the wrangler build: https://github.com/cloudflare/workers-sdk/actions/runs/19769107361/job/56649060509?pr=11464#step:6:548
| # CAUTION: Most usage of @cloudflare/vitest-pool-workers in this mono repo should use workspace:* instead of this catalog version | ||
| # However, some packages (pages-shared, workers-shared, etc...) need to be tested using vitest-pool-workers but are themselves | ||
| # ultimately included in vitest-pool-workers (through Wrangler), causing a circular dependency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this comment!
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
| // Get a new stub since we've just aborted the durable object | ||
| const newStub = env.ENGINE.get(env.ENGINE.idFromName("MOCK-INSTANCE-ID")); | ||
|
|
||
| await newStub.receiveEvent({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these other changes meant to be in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they're to adapt to the vitest-pool-workers update for workflows-shared
da83244 to
7965855
Compare
7965855 to
0702c18
Compare
Cut the
node_modulessize 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 runningpnpm dedupe