easyai-mfe-demo/remote/nuxt.config.ts
2024-12-22 17:04:13 +07:00

28 lines
588 B
TypeScript

import { defineNuxtConfig } from "nuxt/config"
import federation from "@originjs/vite-plugin-federation"
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
devtools: { enabled: false },
ssr: false,
vite: {
plugins: [
federation({
name: "remote-app",
filename: "remoteEntry.js",
exposes: {
"./RemoteContactRouter": "./components/RemoteContactRouter.vue"
},
shared: []
// shared: ['vue']
})
],
build: {
target: "esnext"
}
},
experimental: {
asyncEntry: true
}
})