提交
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user