Skip to content

feat(bundler-utils,vite-plugin): serve and cache variants via the core cache storage - #9

Merged
dangreen merged 1 commit into
mainfrom
add-vite-plugin-cache
Aug 6, 2026
Merged

feat(bundler-utils,vite-plugin): serve and cache variants via the core cache storage#9
dangreen merged 1 commit into
mainfrom
add-vite-plugin-cache

Conversation

@dangreen

@dangreen dangreen commented Aug 6, 2026

Copy link
Copy Markdown
Member

Wires the core SrcSetCacheStorage into the bundler integrations.

  • @srcset/vite-plugin: the plugin instantiates the storage in the Vite cache directory and passes it via the cache generator option - variants are memoized inside the generator. The dev middleware streams variants from the storage by plain file name, anchored under the configured base; the cache: boolean option can disable caching for builds, the dev server always uses the storage
  • @srcset/bundler-utils: createPlaceholder memoizes the placeholder via cache.memo as a .placeholder-postfixed variant; parseResourceQuery accepts the query with or without the leading ?; the module id is split once per load
  • Reviewed locally in four Codex passes (final pass: no findings)

🤖 Generated with Claude Code

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 31116733530

Coverage increased (+0.7%) to 89.111%

Details

  • Coverage increased (+0.7%) from the base build.
  • Patch coverage: 48 of 48 lines across 5 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 537
Covered Lines: 494
Line Coverage: 91.99%
Relevant Branches: 363
Covered Branches: 308
Branch Coverage: 84.85%
Branches in Coverage %: Yes
Coverage Strength: 97177.42 hits per line

💛 - Coveralls

@dangreen
dangreen merged commit 1f6e9dc into main Aug 6, 2026
9 of 16 checks passed
@dangreen
dangreen deleted the add-vite-plugin-cache branch August 6, 2026 18:27
@github-actions github-actions Bot mentioned this pull request Aug 5, 2026
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