@module-federation/vite 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,6 +31,7 @@ Examples live in [`gioboa/module-federation-vite-examples`](https://github.com/g
31
31
  | ---------------------------------------------------------------------------------------- | --------------- | ----------------- | --------------------------- |
32
32
  | [Alpine](https://github.com/gioboa/module-federation-vite-examples/tree/main/alpine) | `alpine-host` | `alpine-remote` | Alpine.js |
33
33
  | [Angular](https://github.com/gioboa/module-federation-vite-examples/tree/main/angular) | `angular-host` | `angular-remote` | Angular |
34
+ | [Ember](https://github.com/gioboa/module-federation-vite-examples/tree/main/ember) | `ember-host` | `ember-remote` | Ember 7 |
34
35
  | [Lit](https://github.com/gioboa/module-federation-vite-examples/tree/main/lit) | `lit-host` | `lit-remote` | Lit |
35
36
  | [Nuxt](https://github.com/gioboa/module-federation-vite-examples/tree/main/nuxt) | `nuxt-host` | `nuxt-remote` | Nuxt 4 |
36
37
  | [Nx](https://github.com/gioboa/react-nx-microfrontend-demo) | `host` | `remote` | React + Nx |
package/lib/index.d.ts CHANGED
@@ -8,7 +8,7 @@ interface RemoteObjectConfig {
8
8
  internalName?: string;
9
9
  entry: string;
10
10
  entryGlobalName?: string;
11
- shareScope?: string;
11
+ shareScope?: string | string[];
12
12
  }
13
13
  interface TreeShakingConfig {
14
14
  mode: 'server-calc' | 'runtime-infer';
@@ -36,7 +36,7 @@ type ModuleFederationOptions = {
36
36
  name: string;
37
37
  remotes?: Record<string, string | RemoteObjectConfig> | undefined;
38
38
  runtime?: any;
39
- shareScope?: string;
39
+ shareScope?: string | string[];
40
40
  /**
41
41
  * Override the public path used for remote entries
42
42
  * Defaults to Vite's base config or "auto" if base is empty