WasmUX
← 返回文档列表

微前端指南

typescript
import { registerMicroApps, start } from '@jianghuizhong/wasmux/micro';

registerMicroApps([
  { name: 'app1', entry: '//localhost:3001', container: '#container', activeRule: '/app1' },
  { name: 'app2', entry: '//localhost:3002', container: '#container', activeRule: '/app2' }
]);
start();

四层隔离:JS、样式、路由、Wasm。内置加密通信,子应用接入 ≤3 步。