@module-federation/vite 1.15.4 → 1.15.5

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
@@ -19,11 +19,13 @@ Examples live in [`gioboa/module-federation-vite-examples`](https://github.com/g
19
19
  | [Angular](https://github.com/gioboa/module-federation-vite-examples/tree/main/angular) | `angular-host` | `angular-remote` | Angular |
20
20
  | [Lit](https://github.com/gioboa/module-federation-vite-examples/tree/main/lit) | `lit-host` | `lit-remote` | Lit |
21
21
  | [Nuxt](https://github.com/gioboa/module-federation-vite-examples/tree/main/nuxt) | `nuxt-host` | `nuxt-remote` | Nuxt 4 |
22
+ | [Nx](https://github.com/gioboa/react-nx-microfrontend-demo) | `host` | `remote` | React + Nx |
22
23
  | [Preact](https://github.com/gioboa/module-federation-vite-examples/tree/main/preact) | `preact-host` | `preact-remote` | Preact 10 |
23
24
  | [React](https://github.com/gioboa/module-federation-vite-examples/tree/main/react) | `react-host` | `react-remote` | React 19 |
24
25
  | [Solid](https://github.com/gioboa/module-federation-vite-examples/tree/main/solid) | `solid-host` | `solid-remote` | Solid |
25
26
  | [Svelte](https://github.com/gioboa/module-federation-vite-examples/tree/main/svelte) | `svelte-host` | `svelte-remote` | Svelte 5 |
26
27
  | [TanStack](https://github.com/gioboa/module-federation-vite-examples/tree/main/tanstack) | `tanstack-host` | `tanstack-remote` | TanStack Router + React 19 |
28
+ | [Turborepo](https://github.com/gioboa/react-turborepo-microfrontend-demo) | `host` | `remote` | React + Turborepo |
27
29
  | [Vinext](https://github.com/gioboa/module-federation-vite-examples/tree/main/vinext) | `vinext-host` | `vinext-remote` | Vinext + Next 16 + React 19 |
28
30
  | [Vue](https://github.com/gioboa/module-federation-vite-examples/tree/main/vue) | `vue-host` | `vue-remote` | Vue 3 |
29
31
 
@@ -45,7 +47,7 @@ pnpm run multi-example
45
47
 
46
48
  ## Getting started 🚀
47
49
 
48
- https://module-federation.io/guide/basic/webpack.html
50
+ [https://module-federation.io/guide/build-plugins/plugins-vite.html](https://module-federation.io/guide/build-plugins/plugins-vite.html)
49
51
 
50
52
  With **@module-federation/vite**, the process becomes delightfully simple, you will only find the differences from a normal Vite configuration.
51
53
 
package/lib/index.cjs CHANGED
@@ -4509,7 +4509,10 @@ export default __mfShared.default ?? __mfShared;`
4509
4509
  if (isLitShare(key)) optimizeDeps.exclude.push(key);
4510
4510
  else optimizeDeps.include.push(key);
4511
4511
  for (const subpath of getCommonSharedSubpaths(key)) {
4512
+ getLoadShareModulePath(subpath, isRolldown);
4513
+ writeLoadShareModule(subpath, shareItem, _command, isRolldown);
4512
4514
  writePreBuildLibPath(subpath, shareItem);
4515
+ addUsedShares(subpath);
4513
4516
  optimizeDeps.include.push(subpath);
4514
4517
  }
4515
4518
  }
package/lib/index.mjs CHANGED
@@ -4489,7 +4489,10 @@ export default __mfShared.default ?? __mfShared;`
4489
4489
  if (isLitShare(key)) optimizeDeps.exclude.push(key);
4490
4490
  else optimizeDeps.include.push(key);
4491
4491
  for (const subpath of getCommonSharedSubpaths(key)) {
4492
+ getLoadShareModulePath(subpath, isRolldown);
4493
+ writeLoadShareModule(subpath, shareItem, _command, isRolldown);
4492
4494
  writePreBuildLibPath(subpath, shareItem);
4495
+ addUsedShares(subpath);
4493
4496
  optimizeDeps.include.push(subpath);
4494
4497
  }
4495
4498
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/vite",
3
- "version": "1.15.4",
3
+ "version": "1.15.5",
4
4
  "description": "Vite plugin for Module Federation",
5
5
  "type": "module",
6
6
  "main": "./lib/index.cjs",