@modern-js/plugin-server 2.58.0 → 2.58.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -54,6 +54,13 @@ const getAssets = (html, nestedRoutes, routesJson, routesManifest, pathname) =>
|
|
54
54
|
}
|
55
55
|
return acc;
|
56
56
|
}, []);
|
57
|
+
const asyncEntry = routeAssets === null || routeAssets === void 0 ? void 0 : routeAssets[`async-${entryName}`];
|
58
|
+
if (asyncEntry) {
|
59
|
+
const asyncAssets = asyncEntry.assets;
|
60
|
+
if (Array.isArray(asyncAssets)) {
|
61
|
+
assets === null || assets === void 0 ? void 0 : assets.push(...asyncAssets);
|
62
|
+
}
|
63
|
+
}
|
57
64
|
const cssAssets = assets === null || assets === void 0 ? void 0 : assets.filter((asset) => asset.endsWith(".css")).filter((asset) => !html.includes(asset));
|
58
65
|
const jsAssets = assets === null || assets === void 0 ? void 0 : assets.filter((asset) => asset.endsWith(".js")).filter((asset) => !asset.includes("hot-update")).filter((asset) => !html.includes(asset));
|
59
66
|
return {
|
@@ -35,6 +35,14 @@ var getAssets = function(html, nestedRoutes, routesJson, routesManifest, pathnam
|
|
35
35
|
}
|
36
36
|
return acc;
|
37
37
|
}, []);
|
38
|
+
var asyncEntry = routeAssets === null || routeAssets === void 0 ? void 0 : routeAssets["async-".concat(entryName)];
|
39
|
+
if (asyncEntry) {
|
40
|
+
var asyncAssets = asyncEntry.assets;
|
41
|
+
if (Array.isArray(asyncAssets)) {
|
42
|
+
var _assets;
|
43
|
+
assets === null || assets === void 0 ? void 0 : (_assets = assets).push.apply(_assets, _to_consumable_array(asyncAssets));
|
44
|
+
}
|
45
|
+
}
|
38
46
|
var cssAssets = assets === null || assets === void 0 ? void 0 : assets.filter(function(asset) {
|
39
47
|
return asset.endsWith(".css");
|
40
48
|
}).filter(function(asset) {
|
@@ -29,6 +29,13 @@ const getAssets = (html, nestedRoutes, routesJson, routesManifest, pathname) =>
|
|
29
29
|
}
|
30
30
|
return acc;
|
31
31
|
}, []);
|
32
|
+
const asyncEntry = routeAssets === null || routeAssets === void 0 ? void 0 : routeAssets[`async-${entryName}`];
|
33
|
+
if (asyncEntry) {
|
34
|
+
const asyncAssets = asyncEntry.assets;
|
35
|
+
if (Array.isArray(asyncAssets)) {
|
36
|
+
assets === null || assets === void 0 ? void 0 : assets.push(...asyncAssets);
|
37
|
+
}
|
38
|
+
}
|
32
39
|
const cssAssets = assets === null || assets === void 0 ? void 0 : assets.filter((asset) => asset.endsWith(".css")).filter((asset) => !html.includes(asset));
|
33
40
|
const jsAssets = assets === null || assets === void 0 ? void 0 : assets.filter((asset) => asset.endsWith(".js")).filter((asset) => !asset.includes("hot-update")).filter((asset) => !html.includes(asset));
|
34
41
|
return {
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.58.
|
18
|
+
"version": "2.58.1",
|
19
19
|
"types": "./dist/types/cli.d.ts",
|
20
20
|
"jsnext:source": "./src/cli",
|
21
21
|
"main": "./dist/cjs/cli.js",
|
@@ -65,21 +65,21 @@
|
|
65
65
|
},
|
66
66
|
"dependencies": {
|
67
67
|
"@swc/helpers": "0.5.3",
|
68
|
-
"@modern-js/runtime-utils": "2.58.
|
69
|
-
"@modern-js/utils": "2.58.
|
70
|
-
"@modern-js/server-utils": "2.58.
|
68
|
+
"@modern-js/runtime-utils": "2.58.1",
|
69
|
+
"@modern-js/utils": "2.58.1",
|
70
|
+
"@modern-js/server-utils": "2.58.1"
|
71
71
|
},
|
72
72
|
"devDependencies": {
|
73
73
|
"@types/jest": "^29",
|
74
74
|
"@types/node": "^14",
|
75
75
|
"jest": "^29",
|
76
76
|
"typescript": "^5",
|
77
|
-
"@modern-js/
|
78
|
-
"@modern-js/
|
79
|
-
"@modern-js/
|
80
|
-
"@modern-js/
|
81
|
-
"@scripts/build": "2.58.
|
82
|
-
"@scripts/jest-config": "2.58.
|
77
|
+
"@modern-js/app-tools": "2.58.1",
|
78
|
+
"@modern-js/server-core": "2.58.1",
|
79
|
+
"@modern-js/core": "2.58.1",
|
80
|
+
"@modern-js/types": "2.58.1",
|
81
|
+
"@scripts/build": "2.58.1",
|
82
|
+
"@scripts/jest-config": "2.58.1"
|
83
83
|
},
|
84
84
|
"sideEffects": [
|
85
85
|
"*.css",
|