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.
Description
测试项目:https://github.com/sufuWang/uniapp_vite/tree/feature/vite
当我在组件和页面引用同一个 less 文件时,会打包失败,因为 plugin-vue 中的 cache 在更新时,会根据 key 值覆盖 value ,导致对 descriptor 的索引失败,详情请克隆测试工程复现此 bug
test project :https://github.com/sufuWang/uniapp_vite/tree/feature/vite
When I reference the same less file in the component and the page, the package fails, because the cache in plugin-vue overwrites the value according to the key value when it is updated, so the index of descriptor fails. For details, please refer to the clone test project to reproduce this bug
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).