我正在尝试将我的vue2 webcomponent迁移到vue3,尽管问题是在我为生产创建一个构建时出现的。
我在--target wc
中使用了vue-cli,它现在显示了一个错误,说明vue3 webcomponent支持仍在开发中。
删除--target
选项--我的构建文件是非常不同的--我所依赖的是没有此选项的.min文件。
我有什么选择?vite是否提供了与以前使用vue2的vue-cli相同的构建输出?
发布于 2022-05-10 13:58:23
现在,-may 2022- vue-cli-service在所有-目标wc上都不支持,实际上在源代码中它是完全禁用的。
if (vueMajor === 3) {
abort(`Vue 3 support of the web component target is still under development.`)
}
https://stackoverflow.com/questions/71164127
复制相似问题