build(test): bundle deps#333
Merged
Brooooooklyn merged 1 commit intomainfrom Dec 16, 2025
Merged
Conversation
a3c9e14 to
9dfda06
Compare
9dfda06 to
07971e2
Compare
6fd1f0b to
9b7d801
Compare
07971e2 to
ecf8b6f
Compare
9b7d801 to
e6348f5
Compare
ecf8b6f to
bbca4ea
Compare
bbca4ea to
c9b64fe
Compare
e6348f5 to
da21b54
Compare
e683b95 to
1058a03
Compare
1058a03 to
de87af8
Compare
Member
Author
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
Member
Author
|
cursor review |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR implements dependency bundling for the @voidzero-dev/vite-plus-test package (vitest wrapper). Instead of having users install all @vitest/* dependencies separately, the PR bundles them into the main package to reduce installation size and complexity.
Key changes:
- Moves vitest and @vitest/* dependencies from runtime dependencies to devDependencies (they're now bundled)
- Implements a comprehensive build script that copies @vitest/* packages, bundles leaf dependencies, and rewrites imports
- Adds new runtime dependencies (sirv, ws, pixelmatch, pngjs) and exports for @vitest/browser compatibility
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 17 comments.
| File | Description |
|---|---|
| packages/test/package.json | Restructures dependencies (moving @vitest/* to devDeps), adds new runtime deps, adds extensive plugin exports for bundled packages |
| pnpm-lock.yaml | Reflects the dependency reorganization from package.json |
| packages/test/build.ts | Adds 1700+ lines implementing the bundling logic: copies @vitest/* packages, bundles leaf dependencies, rewrites imports, and creates compatibility shims |
| ecosystem-ci/patch-project.ts | Updates test project patching to handle bundled dependencies and configure pnpm overrides |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fengmk2
approved these changes
Dec 16, 2025
Member
Author
Merge activity
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Bundles vitest and @vitest deps into
@voidzero-dev/vite-plus-testwith browser/Node separation, rewrites imports/exports, adds plugin shims, and updates ecosystem CI to use bundled packages.vitest-devand@vitest/*intodist/; parse and bundle only leaf deps todist/vendor/; rewrite imports (mapvite→@voidzero-dev/vite-plus-core,@vitest/*,vitest/*); create browser-safemodule-runnerstub; fix path resolutions; patch@vitest/browserand@vitest/browser-playwrightfor browser-safe usage; add vendor stubs and validate externals.dist/index-node.js,./browser-compat,./context,./client,./locators,./browser-playwright, and./plugins/*shims mapping@vitest/*todist/plugins/*.sirv,ws,pixelmatch,pngjs); keep@voidzero-dev/vite-plus-coreas dep; drop@vitest/browser-playwrightfrom peers.@vitest/*devDeps fromapps/dashboard/package.json; switch imports tovitest/browser-playwright; add@vitest/*version overrides inpnpm-workspace.yaml.vite test; add overrides forvitest,@vitest/browser, and@vitest/browser-playwright; relax Node engine; updatevite.config.tsimports tovitest/browser-playwright; remove@vitest/browser-playwrightfrom package devDeps; patch workspace versions and append policy rules.Written by Cursor Bugbot for commit de87af8. This will update automatically on new commits. Configure here.