升级 Vite+ 至 1.0.0 - #30
Merged
Merged
Conversation
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.
背景
将 Chronos 项目使用的 Vite+ 从 0.3.3 升级到 1.0.0,并让本地工具链依赖与新版本保持一致。
变更
vite-plus与@voidzero-dev/vite-plus-core到 1.0.0,更新 pnpm lockfile。vite-plus/test测试入口,并更新 Vite+ 任务缓存配置。.vitest/。兼容性与迁移
Vite+ 1.0 使用 Vitest 5。迁移器检查项已人工复核;当前未发现阻塞问题。
验证
vp run check:通过vp run test:224 个测试文件、1278 项测试通过vp run build:通过(Workbox 报告prerendered/**/*.{html,json}未匹配文件,构建成功)git diff --check:通过