@modern-js/plugin-server 0.0.0-nightly-20240812170644 → 0.0.0-nightly-20240814170652
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.
@@ -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": "0.0.0-nightly-
|
18
|
+
"version": "0.0.0-nightly-20240814170652",
|
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/
|
69
|
-
"@modern-js/
|
70
|
-
"@modern-js/utils": "0.0.0-nightly-
|
68
|
+
"@modern-js/runtime-utils": "0.0.0-nightly-20240814170652",
|
69
|
+
"@modern-js/utils": "0.0.0-nightly-20240814170652",
|
70
|
+
"@modern-js/server-utils": "0.0.0-nightly-20240814170652"
|
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/app-tools": "0.0.0-nightly-
|
78
|
-
"@modern-js/core": "0.0.0-nightly-
|
79
|
-
"@modern-js/types": "0.0.0-nightly-
|
80
|
-
"@modern-js/
|
81
|
-
"@scripts/build": "0.0.0-nightly-
|
82
|
-
"@scripts/jest-config": "0.0.0-nightly-
|
77
|
+
"@modern-js/app-tools": "0.0.0-nightly-20240814170652",
|
78
|
+
"@modern-js/server-core": "0.0.0-nightly-20240814170652",
|
79
|
+
"@modern-js/types": "0.0.0-nightly-20240814170652",
|
80
|
+
"@modern-js/core": "0.0.0-nightly-20240814170652",
|
81
|
+
"@scripts/build": "0.0.0-nightly-20240814170652",
|
82
|
+
"@scripts/jest-config": "0.0.0-nightly-20240814170652"
|
83
83
|
},
|
84
84
|
"sideEffects": [
|
85
85
|
"*.css",
|