@module-federation/sdk 0.0.0-next-20240308070801 → 0.0.0-next-20240309014600
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/index.cjs.js +4 -7
- package/dist/index.esm.js +4 -7
- package/dist/package.json +1 -1
- package/dist/src/types/snapshot.d.ts +1 -2
- package/dist/src/types/stats.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -523,11 +523,10 @@ function generateSnapshotFromManifest(manifest) {
|
|
|
523
523
|
};
|
|
524
524
|
})
|
|
525
525
|
};
|
|
526
|
-
if ((_manifest_metaData = manifest.metaData) === null || _manifest_metaData === void 0 ? void 0 : _manifest_metaData.
|
|
527
|
-
var
|
|
526
|
+
if ((_manifest_metaData = manifest.metaData) === null || _manifest_metaData === void 0 ? void 0 : _manifest_metaData.prefetchInterface) {
|
|
527
|
+
var prefetchInterface = manifest.metaData.prefetchInterface;
|
|
528
528
|
basicRemoteSnapshot = _object_spread_props(_object_spread({}, basicRemoteSnapshot), {
|
|
529
|
-
|
|
530
|
-
prefetchEntryType: type
|
|
529
|
+
prefetchInterface: prefetchInterface
|
|
531
530
|
});
|
|
532
531
|
}
|
|
533
532
|
if ("publicPath" in manifest.metaData) {
|
|
@@ -1122,9 +1121,7 @@ function createScriptNode(url, cb, attrs, createScriptHook) {
|
|
|
1122
1121
|
urlDirname = urlObj.pathname.split("/").slice(0, -1).join("/");
|
|
1123
1122
|
filename = path.basename(urlObj.pathname);
|
|
1124
1123
|
try {
|
|
1125
|
-
script = new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data, "\n})"),
|
|
1126
|
-
filename: filename
|
|
1127
|
-
});
|
|
1124
|
+
script = new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data, "\n})"), filename);
|
|
1128
1125
|
script.runInThisContext()(scriptContext.exports, scriptContext.module, eval("require"), urlDirname, filename);
|
|
1129
1126
|
exportedInterface = scriptContext.module.exports || scriptContext.exports;
|
|
1130
1127
|
if (attrs && exportedInterface && attrs["globalName"]) {
|
package/dist/index.esm.js
CHANGED
|
@@ -519,11 +519,10 @@ function generateSnapshotFromManifest(manifest) {
|
|
|
519
519
|
};
|
|
520
520
|
})
|
|
521
521
|
};
|
|
522
|
-
if ((_manifest_metaData = manifest.metaData) === null || _manifest_metaData === void 0 ? void 0 : _manifest_metaData.
|
|
523
|
-
var
|
|
522
|
+
if ((_manifest_metaData = manifest.metaData) === null || _manifest_metaData === void 0 ? void 0 : _manifest_metaData.prefetchInterface) {
|
|
523
|
+
var prefetchInterface = manifest.metaData.prefetchInterface;
|
|
524
524
|
basicRemoteSnapshot = _object_spread_props(_object_spread({}, basicRemoteSnapshot), {
|
|
525
|
-
|
|
526
|
-
prefetchEntryType: type
|
|
525
|
+
prefetchInterface: prefetchInterface
|
|
527
526
|
});
|
|
528
527
|
}
|
|
529
528
|
if ("publicPath" in manifest.metaData) {
|
|
@@ -1118,9 +1117,7 @@ function createScriptNode(url, cb, attrs, createScriptHook) {
|
|
|
1118
1117
|
urlDirname = urlObj.pathname.split("/").slice(0, -1).join("/");
|
|
1119
1118
|
filename = path.basename(urlObj.pathname);
|
|
1120
1119
|
try {
|
|
1121
|
-
script = new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data, "\n})"),
|
|
1122
|
-
filename: filename
|
|
1123
|
-
});
|
|
1120
|
+
script = new vm.Script("(function(exports, module, require, __dirname, __filename) {".concat(data, "\n})"), filename);
|
|
1124
1121
|
script.runInThisContext()(scriptContext.exports, scriptContext.module, eval("require"), urlDirname, filename);
|
|
1125
1122
|
exportedInterface = scriptContext.module.exports || scriptContext.exports;
|
|
1126
1123
|
if (attrs && exportedInterface && attrs["globalName"]) {
|
package/dist/package.json
CHANGED
|
@@ -27,8 +27,7 @@ export interface BasicProviderModuleInfo extends BasicModuleInfo {
|
|
|
27
27
|
modulePath?: string;
|
|
28
28
|
assets: StatsAssets;
|
|
29
29
|
}>;
|
|
30
|
-
|
|
31
|
-
prefetchEntryType?: RemoteEntryType;
|
|
30
|
+
prefetchInterface?: boolean;
|
|
32
31
|
}
|
|
33
32
|
interface BasicProviderModuleInfoWithPublicPath extends BasicProviderModuleInfo {
|
|
34
33
|
publicPath: string;
|