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

ModuleFederationPlugin LibraryOptions missing?

Open lukechi1219 opened this issue 2 years ago • 3 comments

Versions

  • originjs: v1.1.6
  • node: v16.15.1

Reproduction

Additional Details

/**

  • default: { type: "var", name: name }
  • { type: 'var', name: 'appX' }
  • works fine, default export, named export
  • con: pollutes global with appX var
  • { type: 'global', name: 'appX' }
  • todo: need to check
  • { type: "commonjs-module" }
  • todo: seen this in SSR setup, need to check */ library?: LibraryOptions;

Steps to reproduce

What is Expected?

What is actually happening?

lukechi1219 avatar Jun 22 '22 08:06 lukechi1219

Please provide a reproduction project.

flyfishzy avatar Aug 03 '22 11:08 flyfishzy

any news? I want to use the { type: 'var' } pattern of the webpack federal module library, why can't I find it inside this plugin?

Liubasara avatar Apr 18 '23 02:04 Liubasara

@flyfishzy reproduction project of what? This option is missing

nick4fake avatar Jul 03 '23 16:07 nick4fake