{"repo":"originjs/vite-plugin-federation","free":true,"listed":false,"github":"https://github.com/originjs/vite-plugin-federation","clone":"git clone https://github.com/originjs/vite-plugin-federation.git","description":"Module Federation for vite & rollup","language":"TypeScript","stars":3042,"topics":["rollup","vite","vue","microfront-end"],"license":null,"category":"ui-components","readme_excerpt":"English 简体中文 vite-plugin-federation A Vite/Rollup plugin which support Module Federation. Inspired by Webpack and compatible with Webpack Module Federation. Navigation - Running results - Install - Usage - Example projects - Features - Configuration - Add other example projects? - Runtime add remotes with virtual: federation - FAQ - Star History - Wiki Running results Install or Usage Using the Module Federation usually requires more than 2 projects, one as the host side and one as the remote side . Step 1: Configure the remote side. - for a vite project, modify vite.config.js : - for a rollup project, modify rollup.config.js : Step 2: Configure the host side - for a vite project, modify vite.config.js : - for a rollup project, modify rollup.config.js : Step 3: Using remote modules on the host side Using a Vue project as an example Using remote components in templates Example projects Examples Host Remote --------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------- ----------------------------------- basic-host-remote rollup + esm rollup + esm react-in-vue vite + esm vite + esm simple-react-esm rollup + esm rollup + esm simple-react-systemjs rollup + systemjs rollup + systemjs simple-react-webpack rollup + systemjs webpack + systemjs vue2-demo vite + esm vite + esm vue3-advanced-demo vite + esm vue-router / pinia vite + esm vue-router / pinia vue3-demo-esm vite + e","default_branch":null,"files":null,"tree":[],"storefront":"/r/originjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/originjs/vite-plugin-federation/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}