federation({ name: "aaApp", filename: "remoteEntry.js", // 需要暴露的模块 exposes: { "./getToken": "./src/util/get-token.ts", "./setToken": "./src/util/set-token.ts", "./getSum": "./src/util/get-sum.ts", }, shared: { vue: {}, pinia: {}, "@/util/sum": { pa...
// rollup.config.jsimportfederationfrom'@originjs/vite-plugin-federation'exportdefault{input:'src/index.js',plugins:[federation({name:'host-app',remotes:{remote_app:"http://localhost:5001/remoteEntry.js",},shared:['vue']})]} Step 3: Using remote modules on the host side ...
}, shared: ['vue'] }) ] }Step 2: Configure the host sidefor a vite project, modify vite.config.js: // vite.config.js import federation from "@originjs/vite-plugin-federation"; export default { plugins: [ federation({ name: 'host-app', remotes: { remote_app: "http://localhost:...
// vite.config.js import federation from "@originjs/vite-plugin-federation"; export default { plugins: [ federation({ name: 'remote-app', filename: 'remoteEntry.js', // 需要暴露的模块 exposes: { './Button': './src/Button.vue', }, shared: ['vue'] }) ] } 使用Rollup构建的项目,...
// vite.config.jsimportfederationfrom"@originjs/vite-plugin-federation";exportdefault{plugins:[federation({name:'host-app',remotes:{remote_app:"http://localhost:5001/assets/remoteEntry.js",},shared:['vue']})]} for a rollup project, modifyrollup.config.js: ...
vite-plugin-federation - Support Module Federation, Inspired by Webpack Module Federation feature. vite-plugin-wasm-pack - Integration with rust wasm-pack, the simple way. vite-plugin-comlink - Use WebWorkers with the power of Comlink to make them enjoyable. vite-plugin-sass-dts - This is a...
vite-plugin-checker - Fast run checkers (TypeScript/VLS/vue-tsc, etc.) in worker threads with overlay and terminal hint. vite-plugin-tauri - Integrate Tauri in a Vite project to build cross-platform apps. vite-plugin-federation - Support Module Federation, Inspired by Webpack Module Federation...
Cancel Create saved search Sign in Sign up Reseting focus {{ message }} einari / vite-plugin-federation Public forked from originjs/vite-plugin-federation Notifications You must be signed in to change notification settings Fork 0 Star 0 ...
1033⭐ 92🍴 vite-plugin-checker) - Fast run checkers (TypeScript/VLS/vue-tsc, etc.) in worker threads with overlay and terminal hint. 170⭐ 4🍴 vite-plugin-tauri) - Integrate Tauri in a Vite project to build cross-platform apps. 2487⭐ 253🍴 vite-plugin-federation) - Support...
(),federation({name:'ovos-gui',remotes:awaitgetSkillList(env.VITE_SKILL_LIST_ENDPOINT||'http://localhost:8040/skills'),shared:{vue:{},pinia:{},ovosStore:{packagePath:'./src/store/ovos.ts',},websocketStore:{packagePath:'./src/store/websocket.ts',},},}),],resolve:{alias:{'@':...