使用vant-cli搭建组件库问题 #12362
xiongyechang
started this conversation in
General
使用vant-cli搭建组件库问题
#12362
Replies: 1 comment
-
|
解决方案是在 .vue 文件里面加个 <script lang="ts"> export default defineComponent({ name: '组件名称' }); </script>就可以了 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我在使用vant-cli搭建组件库时,发现组件只要是使用 setup 语法的,在运行
npm run build命令后,打出来的lib包和es包中的index.js最终不会引入这个组件,只有 defineComponent 的组件才被 index.js 引入,这是一个bug嘛?Beta Was this translation helpful? Give feedback.
All reactions