Skip to content

A federated demo of a module built with vite + vue3 + react

Notifications You must be signed in to change notification settings

gongph/module-federation-vite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A federated demo of a module built with vite + vue3 + react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published