@module-federation/vite 1.13.5 → 1.13.7

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
@@ -11,19 +11,21 @@ This plugin makes Module Federation work together with [Vite](https://vitejs.dev
11
11
 
12
12
  ## Working implementations
13
13
 
14
- ### [Vue](https://github.com/gioboa/vue-microfrontend-demo)
15
-
16
- ### [React](https://github.com/gioboa/react-microfrontend-demo)<br>
17
-
18
- ### [Svelte](https://github.com/gioboa/svelte-microfrontend-demo)<br>
19
-
20
- ### [SvelteKit](https://github.com/gioboa/sveltekit-microfrontend-demo)<br>
21
-
22
- ### [SolidJS](https://github.com/gioboa/solid-microfrontend-demo)<br>
23
-
24
- ### [More examples here](https://github.com/module-federation/vite/tree/main/examples)<br>
25
-
26
- Includes a pure runtime host example in [`examples/vite-runtime-register`](./examples/vite-runtime-register).
14
+ Examples live in [`gioboa/module-federation-vite-examples`](https://github.com/gioboa/module-federation-vite-examples):
15
+
16
+ | Example | Host | Remote | Framework |
17
+ | ---------------------------------------------------------------------------------------- | --------------- | ----------------- | --------------------------- |
18
+ | [Alpine](https://github.com/gioboa/module-federation-vite-examples/tree/main/alpine) | `alpine-host` | `alpine-remote` | Alpine.js |
19
+ | [Angular](https://github.com/gioboa/module-federation-vite-examples/tree/main/angular) | `angular-host` | `angular-remote` | Angular |
20
+ | [Lit](https://github.com/gioboa/module-federation-vite-examples/tree/main/lit) | `lit-host` | `lit-remote` | Lit |
21
+ | [Nuxt](https://github.com/gioboa/module-federation-vite-examples/tree/main/nuxt) | `nuxt-host` | `nuxt-remote` | Nuxt 4 |
22
+ | [Preact](https://github.com/gioboa/module-federation-vite-examples/tree/main/preact) | `preact-host` | `preact-remote` | Preact 10 |
23
+ | [React](https://github.com/gioboa/module-federation-vite-examples/tree/main/react) | `react-host` | `react-remote` | React 19 |
24
+ | [Solid](https://github.com/gioboa/module-federation-vite-examples/tree/main/solid) | `solid-host` | `solid-remote` | Solid |
25
+ | [Svelte](https://github.com/gioboa/module-federation-vite-examples/tree/main/svelte) | `svelte-host` | `svelte-remote` | Svelte 5 |
26
+ | [TanStack](https://github.com/gioboa/module-federation-vite-examples/tree/main/tanstack) | `tanstack-host` | `tanstack-remote` | TanStack Router + React 19 |
27
+ | [Vinext](https://github.com/gioboa/module-federation-vite-examples/tree/main/vinext) | `vinext-host` | `vinext-remote` | Vinext + Next 16 + React 19 |
28
+ | [Vue](https://github.com/gioboa/module-federation-vite-examples/tree/main/vue) | `vue-host` | `vue-remote` | Vue 3 |
27
29
 
28
30
  ## Try this crazy example with all these bundlers together
29
31
 
@@ -132,6 +134,24 @@ export default defineConfig({
132
134
  // moduleParseTimeout for large codebases where total build time may
133
135
  // exceed the fixed timeout value.
134
136
  moduleParseIdleTimeout: 10,
137
+ // Controls whether module federation manifest artifacts are generated.
138
+ // Type: boolean | object
139
+ // - false/undefined: no manifest generated
140
+ // - true: generates mf-manifest.json + mf-stats.json (default names)
141
+ // - object: overrides fileName/filePath and asset analysis behavior
142
+ manifest: {
143
+ // Optional output file name for runtime manifest.
144
+ // Default: "mf-manifest.json"
145
+ fileName: "mf-manifest.json",
146
+ // Optional output directory/path for both artifacts.
147
+ // Example: "dist/" -> dist/mf-manifest.json + dist/mf-stats.json
148
+ filePath: "dist/",
149
+ // If true, skips asset analysis.
150
+ // Effect: shared/exposes are omitted from manifest and assetAnalysis is omitted from stats.
151
+ // It also disables the preload-helper patch used for remotes.
152
+ // In serve for consumer-only apps, this defaults to true unless explicitly set.
153
+ disableAssetsAnalyze: false,
154
+ },
135
155
  }),
136
156
  ],
137
157
  server: {