-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 修复vue3框架选中vite编译工具时依赖冲突 #17312
Merged
Merged
fix: 修复vue3框架选中vite编译工具时依赖冲突 #17312
Conversation
This file contains 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
This was referenced Feb 15, 2025
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17312 +/- ##
========================================
Coverage 58.52% 58.52%
========================================
Files 468 468
Lines 27136 27136
Branches 5921 5965 +44
========================================
Hits 15882 15882
+ Misses 9907 9778 -129
- Partials 1347 1476 +129
Flags with carried forward coverage won't be shown. Click here to find out more. |
tutuxxx
approved these changes
Feb 28, 2025
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.
这个 PR 做了什么? (简要描述所做更改)
解决官方cli 4.0初始化时,选择vue3+vite时,存在依赖冲突
packages/taro-framework-vue3/package.json
:@vitejs/plugin-vue
应该和vite
统一大版本号,否则会冲突,最小的改动就是将@vitejs/plugin-vue
改为:这样
vite
的最低版本就是v4,如果后续需要统一将vite
设置高一点的版本,需要将这3个同时升级。另外
初始化时,和官方模板还存在一个
eslint-plugin-vue
的版本冲突:eslint-config-taro@4.0.9
中,packages/eslint-config-taro/package.json
:模板
https://github.com/NervJS/taro-project-templates/blob/v4.0/vue3-NutUI/package.json.tmpl
:这个
pr
也一并调整了,模板项目那边需要改动2处,也是考虑到最小改动,仅将packages/eslint-config-taro
中的依赖调整了一下。这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台: