vite-plugin-federation
vite-plugin-federation copied to clipboard
shared vue 404
Versions
- originjs: ^1.1.0
- node: v14.19.3
- vue 2.6.4
config
hosts
plugins: [
federation({
name: 'aaa',
filename: 'remoteEntry.js',
remotes: {
aaa: {
external: 'https://xxxx/assets/remoteEntry.js',
format: 'esm'
}
},
shared: ['vue']
})
],
build: {
target: 'esnext',
minify: false,
cssCodeSplit: true,
rollupOptions: {
output: {
minifyInternalExports: false
}
}
},
cacheDir: 'node_modules/.cacheDir',
remotes
plugins:[
federation({
name: 'aaa',
filename: 'remoteEntry.js',
exposes: {
'./layoutConfig': './src/ide/bootstrap/default-config.ts'
},
shared: ['vue']
})
]
build: {
polyfillModulePreload: false,
assetsInlineLimit: 40960,
target: 'esnext',
minify: false,
cssCodeSplit: false,
rollupOptions: {
output: {
minifyInternalExports: false
}
}
}
error

Please provide a reproduction project.