vite-plugin-dts icon indicating copy to clipboard operation
vite-plugin-dts copied to clipboard

.vue.d.ts 生成失败在包含 as const的时候

Open hxdyj opened this issue 2 years ago • 1 comments

image 左侧是包含 常量 as const , 右侧改成非常量以后就可以生成.vue.d.ts了

hxdyj avatar Oct 11 '22 04:10 hxdyj

是否能提供一个最小复现?我无法复现这个错误。

qmhc avatar Oct 13 '22 11:10 qmhc

是否能提供一个最小复现?我无法复现这个错误。 我自己写了个最小的demo,发现可以正常生成。但是在我那个大项目,去掉这个就正常了。

有问题的项目: https://github.com/hxdyj/img-mark commitId: v0.0.53 装完依赖后,删除根目录types文件夹,yarn build 生成的types文件夹.d.vue就没有

切换到master分支重新打包就能生成了

hxdyj avatar Oct 20 '22 11:10 hxdyj