samonxian / vite-plugin-build

Vite library mode plugin,which support transfom the whole folder and emit dceclaration files. Vite 库模式插件,支持整个文件夹的转换和声明文件生成。(支持 vanilla、react、vue3 和 svelte)
60 stars 6 forks source link

json 文件不会打包进去 #6

Closed haiting closed 1 year ago

haiting commented 1 year ago

文件夹下有个 test.json 的文件,执行 pnpm run build 打包文件,test.json 文件没有一起打包进去

samonxian commented 1 year ago

这个是不支持的,只支持 ts、js 文件的转换,json 是不用转的,得自己写代码 copy 过去,Vite 有相关的复制插件可以用的。

samonxian commented 1 year ago

0.7.0 版本已支持