• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

clay / claycli / 29491418940
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: jordan/vite-modulepreload
DEFAULT BRANCH: master
Ran 16 Jul 2026 10:37AM UTC
Jobs 1
Files 30
Run time 1min
Badge
Embed โ–พ
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jul 2026 10:35AM UTC coverage: 87.13% (+0.05%) from 87.084%
29491418940

push

github

jjpaulino
๐Ÿ• vite: preload the view-mode startup graph + on-page component chunks

The Vite view bootstrap mounts components by scanning the DOM and import()-ing
each component's client.js at runtime. Those dynamic chunks aren't referenced by
any tag in the server-rendered HTML, so the browser can't start fetching a
component's client (nav, header, โ€ฆ) or its deps (auth, gtm, shared chunks) until
the deferred bootstrap has downloaded, executed, and called import() โ€” a load
waterfall that visibly delays JS-gated UI like the global nav.

- buildManifest now keys dynamic entries (components/<name>/client,
  layouts/<name>/client), not just the bootstrap/kiln entries, so the server can
  look up a page's component chunks.
- getViteModulePreloads now returns the bootstrap PLUS its static import chunks
  (globals-init, env-init, shared chunks) so the whole synchronous startup graph
  is preloaded during HTML parse.
- new getComponentPreloads(names, assetPath) returns each component's client
  chunk + static imports (de-duped) for the server to merge into
  media.modulePreloads.

Consumed by nymag/sites resolve-media.js (stacked PR). Docs: CLAY-VITE.md ยง4d.
Tests: lib/cmd/vite/index.test.js, lib/cmd/vite/scripts.test.js.

Co-authored-by: Cursor <cursoragent@cursor.com>

760 of 942 branches covered (80.68%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

1623 of 1793 relevant lines covered (90.52%)

10.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29491418940.1 16 Jul 2026 10:37AM UTC 30
87.13
GitHub Action Run
Source Files on build 29491418940
  • Tree
  • List 30
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage โˆ† File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29491418940
  • 1de66560 on github
  • Prev Build on v6.0.0-rc.4 (#28599039437)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc