This commit is contained in:
编码猿
2025-09-18 02:51:28 +08:00
parent c26c2ed5d5
commit af2b3badd0
30 changed files with 1518 additions and 6584 deletions

View File

@@ -1,6 +1,6 @@
import { fileURLToPath, URL } from 'node:url'
import {fileURLToPath, URL} from 'node:url'
import { defineConfig } from 'vite'
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import vueDevTools from 'vite-plugin-vue-devtools'
@@ -15,10 +15,10 @@ export default defineConfig({
federation({
name: 'mainApp', // 主应用模块名(联邦模块需通过此名引用)
remotes: { // 配置远程联邦模块地址(开发/生产需对应)
productModule: 'http://localhost:5001/assets/remoteEntry.js'
product: 'http://localhost:5001/assets/remoteEntry.js',
shared: 'http://localhost:5555/assets/remoteEntry.js'
},
exposes: {
"./shared": "./src/shared/index.ts",
"./productService": "./src/app/di/productModule.ts",
},
shared: {