Jerry

Results 3 issues of Jerry

**问题描述** vue3使用 vitest+@testing-library/vue 时报 __uniConfig is not defined 使用的是vue3官网推荐的方案:https://staging-cn.vuejs.org/guide/scaling-up/testing.html#recipes **复现步骤** [复现问题的步骤] 1. 下载下方源码,npm install 或 yarn 安装依赖 2. 执行 `npm run test` [或者可以直接贴源代码] [uni-vue3-testing.zip](https://github.com/dcloudio/uni-app/files/9180017/uni-vue3-testing.zip) **预期结果** 不报错,正常执行 **实际结果** ![image](https://user-images.githubusercontent.com/22720517/180749308-39e09e48-67bd-4d0f-bebc-08c332c74809.png) **系统信息:** -...

![image](https://user-images.githubusercontent.com/22720517/46127263-be4b7580-c262-11e8-8ac0-d17fed976ca9.png) webpack.prod.conf.js 中增加此行解决问题

**问题描述** 根据 vite 官网设置 https://cn.vitejs.dev/config/server-options.html#server-watch,修改 node_modules 中包不生效,因为要开发npm包,所以没有热更新比较影响效率 **复现步骤** 1. vite.config.ts 中修改配置,参考: https://cn.vitejs.dev/config/server-options.html#server-watch 2. 修改 node_modules 中包对应的文件 [或者可以直接贴源代码] **预期结果** 热更新生效 **实际结果** 热更新不生效 **系统信息:** - 发行平台: [微信小程序] - 操作系统 [macOS] - uni-app版本...