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