Skip to content

perf(app): omit unused file metadata runtime#2224

Merged
james-elicx merged 1 commit into
cloudflare:mainfrom
TheAlexLichter:perf/omit-unused-file-metadata-runtime
Jun 22, 2026
Merged

perf(app): omit unused file metadata runtime#2224
james-elicx merged 1 commit into
cloudflare:mainfrom
TheAlexLichter:perf/omit-unused-file-metadata-runtime

Conversation

@TheAlexLichter

Copy link
Copy Markdown
Collaborator

File-based metadata resolution is now injected into the App Router runtime only when the route scan finds metadata files. Apps without file-based metadata omit that runtime while module metadata and generateMetadata behavior remains unchanged. Focused boundary, entry-template, and metadata-route tests pass alongside targeted checks, knip, and the vinext package build.

@pkg-pr-new

pkg-pr-new Bot commented Jun 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vinext/cloudflare@2224
npm i https://pkg.pr.new/vinext@2224

commit: 7d921ea

@github-actions

Copy link
Copy Markdown
Contributor

Performance benchmarks

Compared 7d921ea against base 82d5f76 using alternating same-runner rounds. Next.js was unchanged and skipped.

2 improved · 0 regressed · 4 within ±1.5%

Scenario Framework Baseline Current Change
Client bundle size (gzip) vinext 132.8 KB 132.8 KB ⚫ +0.0%
Client entry size (gzip) vinext 118.7 KB 118.7 KB ⚫ +0.0%
Dev server cold start vinext 2.38 s 2.34 s 🟢 -1.8%
Production build time vinext 2.80 s 2.78 s ⚫ -0.4%
RSC entry closure size (gzip) vinext 92.2 KB 91.6 KB ⚫ -0.7%
Server bundle size (gzip) vinext 166.9 KB 163.8 KB 🟢 -1.8%

View detailed results and traces

🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head

@james-elicx james-elicx merged commit eb18704 into cloudflare:main Jun 22, 2026
47 checks passed
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