Skip to content

Clean up deps count and add compiled core - #975

Open
AlexanderKaran wants to merge 3 commits into
mainfrom
clean-up-deps-count
Open

AlexanderKaran wants to merge 3 commits into
mainfrom
clean-up-deps-count

Conversation

@AlexanderKaran

@AlexanderKaran AlexanderKaran commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Ok this PR does a few things:

  • Cleans up the core deps count logic, so thinks counting just the meta-framework pages themselves, like "nuxt": "4.7.0"
  • Set up the benchmark to count compiled deps
  • Updated the schema to add core compiled count
  • Backfilled old stats with 0 for now

Compiled count will not show in the charts, and each meta-framework that has compiled deps will get its own pr.

For example, you can find NextJS by looking in node_modules/next/dist/compiled. Count the package.json files at the package level, including scoped packages such as @opentelemetry/api.

Of course, compiled deps do not mean they end up in your final build, so I think just splitting it into dev deps, prod deps and compiled deps is best. I think trying to break down compiled deps to what makes it into prod and what does not is a bad idea.

Part of: #847

One question to tackle will be what to do about dupes. So what happens when a compiled dep is also in the main package.json but we can tackel that in the next PRs

@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
framework-performance 3cf0171 Commit Preview URL

Branch Preview URL
Nov 28 2026, 07:35 AM

@dreyfus92 dreyfus92 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm overall. i got two suggestions:

  • backfilling 0 means next (and its new runs until the follow up) says 0 compiled deps when it bundles around 140, and it'll look like a jump later. could coreCompiled be optional and left unset until we actually measure it?
  • the switch is all return 0 right now, maybe a compiledDir on the framework config plus one counter would save a case per framework

@AlexanderKaran

Copy link
Copy Markdown
Collaborator Author

lgtm overall. i got two suggestions:

  • backfilling 0 means next (and its new runs until the follow up) says 0 compiled deps when it bundles around 140, and it'll look like a jump later. could coreCompiled be optional and left unset until we actually measure it?

  • the switch is all return 0 right now, maybe a compiledDir on the framework config plus one counter would save a case per framework

@dreyfus92 as I add a meta-frameworks compiled check I will backfill with correct numbers. This ones easy to do locally.

As for the switch I may change this. Went with it so when new frameworks get added it explicit something has to be added here.

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