Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 681 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 681 Bytes

module-federation-vite

Use the module-federation third-party library to make a vue module federation demo

Directory structure

  • host-vue:The host side, import the module from the remote side

  • remote-*:The remote side, expose the module to the host side

Preview

  • remote vue

preview

  • remote react

preview

Usage

  • Clone the project
git clone [email protected]:gongph/module-federation-vite.git
  • Install dependencies
cd remote-vue
pnpm i
pnpm preview

cd remote-react
pnpm i
pnpm preview

cd host-vue
pnpm i
pnpm dev # localhost:5173