Results 3 comments of MAXLZ

多个子应用同时激活时,`vue`采用`abstract`路由,`react`采用`memory`路由。 [https://maxlz1.github.io/micro-app-demos/qiankun-demo/vue3-main/dist/#/coexist-micro-app](https://maxlz1.github.io/micro-app-demos/qiankun-demo/vue3-main/dist/#/coexist-micro-app)

`@vitejs/plugin-react`插件可通过[fastRefresh](https://github.com/vitejs/vite/tree/main/packages/plugin-react#vitejsplugin-react-)配置是否启用`react-refresh`。禁用`react-refresh`可避免发生这种错误。 ```js import { defineConfig, loadEnv } from 'vite' import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig(({ mode }) => ({ // ... plugins: [ react({ fastRefresh: false }),...

## 地址 线上地址:[https://maxlz1.github.io/micro-app-demos/qiankun-demo/vue3-main/](https://maxlz1.github.io/micro-app-demos/qiankun-demo/vue3-main/) 仓库地址:[https://github.com/MAXLZ1/micro-app-demos/tree/main/packages/qiankun-demo](https://github.com/MAXLZ1/micro-app-demos/tree/main/packages/qiankun-demo) ## 简介 主应用为`vue3 + vite`,子应用为`vue2 + vue cli`、`react18 + webpack`、`react18 + vite`。其中`react18 + webpack`会作为主应用动态加载`vue2 + vue cli`应用或`react18 + vite`应用。 其中`vite`子应用使用[vite-plugin-qiankun](https://github.com/tengmaoqing/vite-plugin-qiankun)进行接入。 ## 功能列表 - [x] 应用间通信(利用`CustomEvent`) -...