Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

fix(core): fix analyzer duplicate injection code #268

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

alexzhang1030
Copy link
Collaborator

@alexzhang1030 alexzhang1030 commented Dec 13, 2023

closes #264

This issue will occur when using sfc + tsx.

If the lang of an sfc is tsx/jsx, it will transform this file twice, (once vite-plugin-vue, once vite-plugin-vue-jsx)

We need to prevent duplicate injections.

@webfansplz webfansplz merged commit eff7c79 into webfansplz:main Dec 13, 2023
1 check passed
@alexzhang1030 alexzhang1030 deleted the fi/duplicate-inject branch December 13, 2023 12:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

添加组件显示 __VUE_DEVTOOLS_$getCurrentInstance__已被占用
2 participants