feat: use runtime functional options #798
Open
+31
−11
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
目前
vue
官方 和volar
插件具体进度冲突,我们不能急于抛弃@vue/runtime-core
运行时。Linked Issues
#389
#406
#477
Additional context
目前好像只有这个办法是比较直接能解决问题的,不影响已经抛弃
@vue/runtime-core
的用户,只需要启用运行时选项runtime
,它会在vue
命名空间基础上再生成一遍@vue/runtime-core
命名空间,能让类型提示正常。