@module-federation/vite 1.20.0 → 1.20.1
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/lib/index.d.ts +4 -3
- package/lib/index.js +1140 -51
- package/lib/{ssrEntryLoader-BUD1-3Z2.js → ssrEntryLoader-Bw423jj_.js} +5 -1
- package/lib/{ssrVmStrategy-C_cJtu5V.js → ssrVmStrategy-7HAPa-Vc.js} +1 -1
- package/lib/utils/ssrEntryLoader.d.ts +1 -4
- package/lib/utils/ssrEntryLoader.js +1 -1
- package/package.json +11 -11
- package/lib/pluginDts-Dbbi4cnh.js +0 -845
|
@@ -216,6 +216,10 @@ function makeUrlCacheKey(url, fetchTimeoutMs, fetchMaxBytes) {
|
|
|
216
216
|
return `${fetchTimeoutMs}::${fetchMaxBytes}::${url}`;
|
|
217
217
|
}
|
|
218
218
|
var SsrEntryHttpError = class extends Error {
|
|
219
|
+
url;
|
|
220
|
+
status;
|
|
221
|
+
statusText;
|
|
222
|
+
bodyPreview;
|
|
219
223
|
constructor(url, status, statusText, bodyPreview) {
|
|
220
224
|
super(`Failed to fetch SSR module "${url}": ${status} ${statusText}` + (bodyPreview ? `\npreview: ${bodyPreview}` : ""));
|
|
221
225
|
this.url = url;
|
|
@@ -568,7 +572,7 @@ async function importTempModule(filePath, versionKey) {
|
|
|
568
572
|
}
|
|
569
573
|
let warnedVmUnavailable = false;
|
|
570
574
|
async function tryVmStrategy(ssrEntry, options) {
|
|
571
|
-
const { loadViaVmStrategy, isVmStrategyAvailable } = await import("./ssrVmStrategy-
|
|
575
|
+
const { loadViaVmStrategy, isVmStrategyAvailable } = await import("./ssrVmStrategy-7HAPa-Vc.js");
|
|
572
576
|
if (!await isVmStrategyAvailable()) {
|
|
573
577
|
if (!warnedVmUnavailable) {
|
|
574
578
|
warnedVmUnavailable = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as readResponseTextBounded, n as neutralizeBrowserPreloadHelpers, s as fetchWithTimeout, t as SsrEntryHttpError } from "./ssrEntryLoader-
|
|
1
|
+
import { c as readResponseTextBounded, n as neutralizeBrowserPreloadHelpers, s as fetchWithTimeout, t as SsrEntryHttpError } from "./ssrEntryLoader-Bw423jj_.js";
|
|
2
2
|
//#region src/utils/ssrVmStrategy.ts
|
|
3
3
|
/**
|
|
4
4
|
* vm.SourceTextModule strategy for loading remote SSR entries.
|
|
@@ -113,10 +113,7 @@ interface SsrEntryLoaderOptions {
|
|
|
113
113
|
}
|
|
114
114
|
declare function ssrEntryLoaderPlugin(options?: SsrEntryLoaderOptions): {
|
|
115
115
|
name: string;
|
|
116
|
-
loadEntry({
|
|
117
|
-
remoteInfo,
|
|
118
|
-
origin
|
|
119
|
-
}: {
|
|
116
|
+
loadEntry({ remoteInfo, origin }: {
|
|
120
117
|
remoteInfo: RemoteInfo;
|
|
121
118
|
origin?: object;
|
|
122
119
|
}): Promise<{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as ssrEntryLoaderPlugin, n as neutralizeBrowserPreloadHelpers, r as revalidate, t as SsrEntryHttpError } from "../ssrEntryLoader-
|
|
1
|
+
import { i as ssrEntryLoaderPlugin, n as neutralizeBrowserPreloadHelpers, r as revalidate, t as SsrEntryHttpError } from "../ssrEntryLoader-Bw423jj_.js";
|
|
2
2
|
export { SsrEntryHttpError, ssrEntryLoaderPlugin as default, neutralizeBrowserPreloadHelpers, revalidate };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/vite",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.1",
|
|
4
4
|
"description": "Vite plugin for Module Federation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -77,20 +77,20 @@
|
|
|
77
77
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@module-federation/dts-plugin": "2.8.
|
|
81
|
-
"@module-federation/runtime": "2.8.
|
|
82
|
-
"@module-federation/sdk": "2.8.
|
|
80
|
+
"@module-federation/dts-plugin": "2.8.1",
|
|
81
|
+
"@module-federation/runtime": "2.8.1",
|
|
82
|
+
"@module-federation/sdk": "2.8.1"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@playwright/test": "1.
|
|
86
|
-
"@types/node": "
|
|
85
|
+
"@playwright/test": "1.62.0",
|
|
86
|
+
"@types/node": "26.1.2",
|
|
87
87
|
"husky": "9.1.7",
|
|
88
88
|
"mock-shared-dep": "workspace:*",
|
|
89
|
-
"oxfmt": "0.
|
|
90
|
-
"rollup": "4.
|
|
91
|
-
"tsdown": "0.
|
|
92
|
-
"typescript": "
|
|
93
|
-
"vite": "8.1.
|
|
89
|
+
"oxfmt": "0.61.0",
|
|
90
|
+
"rollup": "4.62.3",
|
|
91
|
+
"tsdown": "0.22.14",
|
|
92
|
+
"typescript": "7.0.2",
|
|
93
|
+
"vite": "8.1.5",
|
|
94
94
|
"vitest": "4.0.18"
|
|
95
95
|
}
|
|
96
96
|
}
|