lishaobos / vite-plugin-legacy-qiankun

让 vite 集成 qiankun,支持 js,css 沙箱
106 stars 10 forks source link

只要使用手动加载就报错,在mac和window平台试过都这样 #20

Closed lqx131499 closed 1 year ago

lqx131499 commented 1 year ago
image
import { loadMicroApp } from 'qiankun'

loadMicroApp({
    name: 'demo2',
    entry: '//localhost:5175',
    container: '#appContainer',
    activeRule: '/',
    props: {
      parentStore: '11111',
      msg: '我是父应用传过来的值,传递给B应用'
    }
  })
lqx131499 commented 1 year ago

legacyQiankun必须和packages的name一致才行,要不会再getMicroApp的时候获取不到对应的对象

    legacyQiankun({
      name: '@tools/demo2',
      devSandbox: true
    })