quasar-federation-demo
Demonstrates micro front-end implementation with vue 3 and vite
Create host
- Create host app with
npm create vue@3
. - Install federation plugin:
npm i -D @originjs/vite-plugin-federation
- Install dependencies:
npm i
- Fix a transpile bug/error by adding the following into vite.config.js:
Ref: vitejs/vite#6985
build: {
target: 'esnext'
}
Remote remote
- Create remote module with
npm create vue#3
. - Install federation plugin:
npm i -D @originjs/vite-plugin-federation
- Install dependencies:
npm i
- Fix a transpile bug/error by adding the following into vite.config.js:
Ref: vitejs/vite#6985
build: {
target: 'esnext'
}