Skip to content

A browser-side javascript library for overriding import maps

License

Notifications You must be signed in to change notification settings

ousiri/qiankun-overrides

 
 

Repository files navigation

qiankun-overrides

forked from joeldenning/import-map-overrides

import-map-overrides for Qiankun

Usage

import { registerMicroApps } from 'qiankun'

const imo = window.importMapOverrides
const microApps = [{
  name: 'v1',
  entry: 'http://localhost:8081',
  container: '#container',
  activeRule: () => location.pathname.startsWith('v1'),
}, {
  name: 'v2',
  entry: 'http://localhost:8082',
  container: '#container',
  activeRule: () => location.pathname.startsWith('v2'),
}]

imo.setDefaultMap(microApps)
registerMicroApps(Object.values(imo.getCurrentQiankunMap()))

About

A browser-side javascript library for overriding import maps

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 83.6%
  • CSS 8.9%
  • HTML 7.5%