Skip to content

Conversation

waset
Copy link

@waset waset commented Sep 3, 2024

Description

目前 vue 官方 和 volar 插件具体进度冲突,我们不能急于抛弃 @vue/runtime-core 运行时。

因急于使用,目前已上传至 npmjs @waset/unplugin-vue-components,如过对本库造成影响可以联系我,我会进行删除

Linked Issues

#389
#406
#477

Additional context

目前好像只有这个办法是比较直接能解决问题的,不影响已经抛弃 @vue/runtime-core 的用户,只需要启用运行时选项 runtime,它会在vue命名空间基础上再生成一遍@vue/runtime-core命名空间,能让类型提示正常。

// vite.config.ts import Components from 'unplugin-vue-components/vite' export default defineConfig({ plugins: [ Components({ /* options */ runtime: true, }), ], })
@waset waset requested a review from antfu as a code owner September 3, 2024 08:59
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@chenchenpp
Copy link

现在版本没有这个属性?

@waset
Copy link
Author

waset commented Sep 19, 2024

现在版本没有这个属性?

没有,现在 @vuejs 官方 runtime-core 包过度过的开发很难受

@chenchenpp
Copy link

现在版本没有这个属性?

没有,现在 @vuejs 官方 runtime-core 包过度过的开发很难受

确实,之前volar版本还支持,换成official这个就失效了。我还以为是我配置有什么问题呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants