w123angmeng
w123angmeng
> 我认为比较好的解决方案:写一个 webpack plugin 然后 hook 到 html-webpack-plugin 写入标签之前的时机,在回调函数中为我们的入口 script(可以通过正则匹配) 属性添加 ‘entry’ 即可。 尝试通过plugins设置入口 script,属性添加‘entry’后,依旧报错“找不到子应用生命周期” demo地址:https://github.com/w123angmeng/demo
> > 碰到一样的问题,mark > > 没找到方案,避开了,放弃了模块联邦 遇到同样问题,现在有解决方案吗,组件共享不用模块联邦,有什么好的替代方案吗?
> > > > > > > > > > 碰到一样的问题,mark > > > > > > > > > > > > > > > > > > >...
> 各位大佬们,现在这个问题有好的解决办法了吗? @w123angmeng 1. 子仓库入口改成 import('./bootstrap') ; 2. 公共组件项目 MF配置 share配置注释掉; 通过以上处理,qiankun + MF 能实现组件共享,但第三方依赖共享还是有问题(配置share报错);
需要手动把pages.json 中tabar配置的图片,在main.js中再引入一遍 能暂时解决这个问题。npm run test:mp-weixin 能正常跑起来
> 感谢反馈 问题1 确实存在,是因为自动化测试模式 uni -p mp-weixin 命令加上 --auto-port 9520 参数后会导致异步的同步文件进程还未结束就提前结束了构建,并非 vite 不支持自动化测试。会在近期修复这个问题,暂时解决方法:node_modules/@dcloudio/vite-plugin-uni/dist/cli/action.js 文件第112行,process.exit(0); 改成 setTimeout 2000毫秒后执行。  问题2 element.input() 确实存在 vue3 的兼容性问题,但已修复,可关注近期 hbuilderX alpha 新版本发布。 问题3 setup语法 暂时还不支持调用 data...
> _No description provided._ 按uni-app 官网给的搭了下vite + vue3 自动化测试环境,npm run test:h5 没问题;npm run test:mp-weixin 静态资源缺少 demo: https://github.com/w123angmeng/vite-vue3-autotest-demo 也提了issue:https://github.com/dcloudio/hello-uniapp/issues/86 你那边有啥vue3 自动化测试有啥解决方案吗?