vp migrate beta test#9
Conversation
There was a problem hiding this comment.
Code Review
This pull request migrates the project to the Vite+ unified toolchain, updating package dependencies and test imports across the monorepo. The reviewer identified several opportunities to clean up the dependency management by removing redundant direct dependencies on vitest where it is already provided transitively via vite-plus. Additionally, the reviewer recommended importing defineConfig from vite rather than vite-plus in configuration files to better align with standard practices.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| "vite-plus": "0.0.0-commit.5b214b7987c99adfe0aff4d406264457ed0232ce", | ||
| "vitest": "4.1.9" |
There was a problem hiding this comment.
The vitest package is a dependency of vite-plus, so it will be installed transitively. Adding it as a direct devDependency here is redundant. To simplify dependency management, it's best to remove it and rely on the version brought in by vite-plus. The overrides section already ensures a consistent version of vitest is used throughout the monorepo.
"vite-plus": "0.0.0-commit.5b214b7987c99adfe0aff4d406264457ed0232ce"| "vite-plus": "0.0.0-commit.5b214b7987c99adfe0aff4d406264457ed0232ce", | ||
| "vitest": "4.1.9" |
There was a problem hiding this comment.
| import { fileURLToPath } from 'node:url' | ||
|
|
||
| import { defineConfig } from 'vitest/config' | ||
| import { defineConfig } from 'vite-plus' |
There was a problem hiding this comment.
The import path for defineConfig has been changed from vitest/config to vite-plus. This is consistent with the migration to vite-plus. However, vite-plus also re-exports defineConfig from vite. It's more idiomatic to import defineConfig directly from vite when configuring Vite, even when using Vitest. Consider changing this to import { defineConfig } from 'vite' for better clarity and alignment with standard practices.
| import { defineConfig } from 'vite-plus' | |
| import { defineConfig } from 'vite' |
| "@faasjs/dev": "file:../../packages/dev", | ||
| "vitest": "4.1.9" |
There was a problem hiding this comment.
| "@faasjs/dev": "file:../../packages/dev", | ||
| "vitest": "4.1.9" |
| "@faasjs/dev": "file:../../packages/dev", | ||
| "vitest": "4.1.9" |
Summary / 变更说明
Related Issue / 关联 Issue
Type of change / 变更类型
Affected packages / 影响包
Validation / 验证
mise exec -- npm run lintmise exec -- npm run testIf checks are skipped, explain why:
Breaking Change / 破坏性变更
Checklist / 提交前检查