single-spa-iframes
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

single-spa-iframes

A Workaround to use microfrontends with single-spa

Use example

  const iframeLifeCycles = singleSpaIframes({
    baseUrl: 'http://localhost:2910/#',
    elGetter() {
      return document.getElementById('easyApp')
    }
  })

  export const bootstrap = iframeLifeCycles.bootstrap
  export const mount = iframeLifeCycles.mount
  export const unmount = iframeLifeCycles.unmount

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i single-spa-iframes

    Weekly Downloads

    11

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    10.6 kB

    Total Files

    20

    Last publish

    Collaborators

    • ambitus