vite-plugin-federation icon indicating copy to clipboard operation
vite-plugin-federation copied to clipboard

shared vue 404

Open ChesterBu opened this issue 2 years ago • 1 comments

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

截屏2022-07-14 20 12 56

ChesterBu avatar Jul 14 '22 12:07 ChesterBu

Please provide a reproduction project.

flyfishzy avatar Aug 03 '22 11:08 flyfishzy