@module-federation/esbuild 0.0.0-next-20240530194604 → 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.
- package/dist/plugin.cjs.js +3 -3
- package/dist/plugin.esm.js +3 -3
- package/package.json +1 -1
package/dist/plugin.cjs.js
CHANGED
|
@@ -605,7 +605,7 @@ const buildFederationHost = (config)=>{
|
|
|
605
605
|
return `
|
|
606
606
|
import { init as initFederationHost } from "@module-federation/runtime";
|
|
607
607
|
|
|
608
|
-
|
|
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
|
|
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(
|
|
666
|
+
await Promise.all(mfHoZJ92.initializeSharing('default', 'version-first'));
|
|
667
667
|
|
|
668
668
|
|
|
669
669
|
`;
|
package/dist/plugin.esm.js
CHANGED
|
@@ -595,7 +595,7 @@ const buildFederationHost = (config)=>{
|
|
|
595
595
|
return `
|
|
596
596
|
import { init as initFederationHost } from "@module-federation/runtime";
|
|
597
597
|
|
|
598
|
-
|
|
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
|
|
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(
|
|
656
|
+
await Promise.all(mfHoZJ92.initializeSharing('default', 'version-first'));
|
|
657
657
|
|
|
658
658
|
|
|
659
659
|
`;
|
package/package.json
CHANGED