@module-federation/esbuild 0.0.0-next-20240530210646 → 0.0.0-next-20240530211114

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.
@@ -605,7 +605,7 @@ const buildFederationHost = (config)=>{
605
605
  return `
606
606
  import { init as initFederationHost } from "@module-federation/runtime";
607
607
 
608
- export const createVirtualRemoteModule = (name, ref, exports) => {
608
+ const createVirtualRemoteModule = (name, ref, exports) => {
609
609
  const genExports = exports.map(e =>
610
610
  e === 'default'
611
611
  ? 'export default mfLsZJ92.default;'
@@ -656,14 +656,14 @@ const buildFederationHost = (config)=>{
656
656
  }
657
657
  });
658
658
 
659
- const host = initFederationHost({
659
+ const mfHoZJ92 = initFederationHost({
660
660
  name: ${JSON.stringify(name)},
661
661
  remotes: ${remoteConfigs},
662
662
  shared: ${sharedConfig},
663
663
  plugins: [runtimePlugin()],
664
664
  });
665
665
 
666
- await Promise.all(host.initializeSharing('default', 'version-first'));
666
+ await Promise.all(mfHoZJ92.initializeSharing('default', 'version-first'));
667
667
 
668
668
 
669
669
  `;
@@ -595,7 +595,7 @@ const buildFederationHost = (config)=>{
595
595
  return `
596
596
  import { init as initFederationHost } from "@module-federation/runtime";
597
597
 
598
- export const createVirtualRemoteModule = (name, ref, exports) => {
598
+ const createVirtualRemoteModule = (name, ref, exports) => {
599
599
  const genExports = exports.map(e =>
600
600
  e === 'default'
601
601
  ? 'export default mfLsZJ92.default;'
@@ -646,14 +646,14 @@ const buildFederationHost = (config)=>{
646
646
  }
647
647
  });
648
648
 
649
- const host = initFederationHost({
649
+ const mfHoZJ92 = initFederationHost({
650
650
  name: ${JSON.stringify(name)},
651
651
  remotes: ${remoteConfigs},
652
652
  shared: ${sharedConfig},
653
653
  plugins: [runtimePlugin()],
654
654
  });
655
655
 
656
- await Promise.all(host.initializeSharing('default', 'version-first'));
656
+ await Promise.all(mfHoZJ92.initializeSharing('default', 'version-first'));
657
657
 
658
658
 
659
659
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/esbuild",
3
- "version": "0.0.0-next-20240530210646",
3
+ "version": "0.0.0-next-20240530211114",
4
4
  "author": "Zack Jackson (@ScriptedAlchemy)",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",