@icreate/ics-micro-frontend
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-beta.2 • Public • Published

Usage

npm i @icreate/ics-micro-frontend

Features

  • SandBox:window沙箱

Importing library

You can import the generated bundle to use the whole library generated by this starter:

import microFrontend from '@icreate/sanbox'

Usage

import micro-frontend from '@icreate/micro-frontend';

const micro-frontend = new micro-frontend();

// execute scripts in micro-frontend
micro-frontend.execScriptInmicro-frontend('window.a = 1;console.log(window.a);');

// clear side effects added by micro-frontend, such as addEventListener, setInterval
micro-frontend.clear();

Readme

Keywords

none

Package Sidebar

Install

npm i @icreate/ics-micro-frontend

Weekly Downloads

0

Version

0.0.1-beta.2

License

MIT

Unpacked Size

121 kB

Total Files

19

Last publish

Collaborators

  • zhangmenglei
  • zer001
  • jiangbing
  • zhu_enrui
  • flown
  • liuzk
  • hanmeng_mon
  • yujian01
  • z5y
  • dingwei1
  • restlife1994
  • c_zhu
  • wenbei