uni-app cli + vue3 + vite 项目热更新会构建 ttcomponents 目录
uni-app cli + vue3 + vite 项目热更新会构建 ttcomponents 目录
操作步骤:
启动项目,在项目中引用一个ttcomponents的文件,修改项目中任意文件的代码触发热更新,所引用的ttcomponents的文件被构建了
预期结果:
不会被构建
实际结果:
被构建
bug描述:
dev启动时正常,重新修改项目任意文件,所引入的 ttcomponents 下的对应的文件会被构建
图片

| 信息类别 | 信息内容 |
|---|---|
| 产品分类 | uniapp/小程序/抖音 |
| PC开发环境 | Mac |
| PC开发环境版本 | 3.0.0-4020920240930001 |
| HBuilderX版本 | 4.72 |
| 第三方开发者工具 | 3.0.0-4020920240930001 |
| 基础库版本 | 3.0.0-4020920240930001 |
| 项目创建方式 | CLI |
| CLI版本 | 3.0.0-4020920240930001 |
更多关于uni-app cli + vue3 + vite 项目热更新会构建 ttcomponents 目录的实战教程也可以访问 https://www.itying.com/category-93-b0.html
4 回复
您好,麻烦发下vue版本和可复现的demo
更多关于uni-app cli + vue3 + vite 项目热更新会构建 ttcomponents 目录的实战教程也可以访问 https://www.itying.com/category-93-b0.html
vue: 3.5.15 demo: https://github.com/wendell0316/uniapp-test
你好,有结论了不~
ttcomponents 下面的js文件不能被 pages下的文件引用,现在uniapp框架的策略是 ttcomponents 下面的所有文件直接拷贝到 dist 指定目录下面,如果有引用就会编译引用的文件。

