feat(vite-plugin): add Vite plugin#7
Conversation
Coverage Report for CI Build 29915174825Coverage increased (+0.6%) to 87.811%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
There was a problem hiding this comment.
Pull request overview
Adds a new @srcset/vite-plugin package that integrates @srcset/* image generation into the Vite pipeline, supporting both dev-server in-memory serving and build-time asset emission.
Changes:
- Introduces a Vite plugin (
srcset()) that generates responsive image modules on import and emits/serves generated variants. - Adds query parsing + filtering helpers and dev-server middleware for serving generated variants.
- Adds package scaffolding (tsconfigs, lint config, README, tests) and updates the lockfile for workspace consistency.
Reviewed changes
Copilot reviewed 14 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Adds the new workspace importer and its dependency graph. |
| packages/vite-plugin/vite.config.js | Vitest configuration (timeout + coverage settings) for the new package. |
| packages/vite-plugin/tsconfig.json | Package TS config for typechecking/tests. |
| packages/vite-plugin/tsconfig.build.json | Build TS config for emitting dist/ outputs. |
| packages/vite-plugin/test/vite.mock.ts | Test fixture helper for creating a temporary Vite project and image input. |
| packages/vite-plugin/src/types.ts | Defines the plugin options type surface. |
| packages/vite-plugin/src/query.ts | Implements module-id filtering and query decoding utilities. |
| packages/vite-plugin/src/query.spec.ts | Unit tests for query parsing/filter behavior. |
| packages/vite-plugin/src/plugin.ts | Core Vite plugin implementation (load hook + build/dev behavior). |
| packages/vite-plugin/src/plugin.spec.ts | Integration-style tests for build and dev server behavior. |
| packages/vite-plugin/src/index.ts | Public entry point exports for the package. |
| packages/vite-plugin/src/dev.ts | Dev-server in-memory variant cache + middleware implementation. |
| packages/vite-plugin/README.md | Package documentation and usage examples. |
| packages/vite-plugin/package.json | New package manifest: exports, scripts, deps/peers, publish config. |
| packages/vite-plugin/oxlint.config.ts | Package lint configuration extending repo defaults. |
| packages/vite-plugin/client.d.ts | Ambient module typings for image imports. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@codex make review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aebf2f7a38
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex make review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a79920eeb3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…, type query imports
|
@codex make review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3ce0ba00d5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex make review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3730122981
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex make review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fe94887b2b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex make review Do not re-raise previously rejected and resolved findings. Already rejected by maintainer decision, do not repeat:
|
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Adds
@srcset/vite-plugin- Vite plugin for generating responsive images.@srcset/bundler-utilsfor query parsing, module codegen and placeholderspnpm-lock.yaml🤖 Generated with Claude Code