@modern-js/plugin-ssg 3.9.1 → 3.9.2
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/cjs/libs/make.js
CHANGED
|
@@ -62,7 +62,7 @@ function makeRoute(baseRoute, route, headers = {}) {
|
|
|
62
62
|
headers,
|
|
63
63
|
output: external_path_default().join(entryPath, `..${'/' === route ? '' : route}`)
|
|
64
64
|
};
|
|
65
|
-
return {
|
|
65
|
+
else return {
|
|
66
66
|
...baseRoute,
|
|
67
67
|
urlPath: external_normalize_path_default()(`${urlPath}${route.url}`) || '/',
|
|
68
68
|
headers: {
|
package/dist/cjs/libs/util.js
CHANGED
|
@@ -136,7 +136,7 @@ const standardOptions = (ssgOptions, entrypoints, routes, server, ssgByEntries)=
|
|
|
136
136
|
opt[entry.entryName] = ssgOptions;
|
|
137
137
|
return opt;
|
|
138
138
|
}, {});
|
|
139
|
-
if ('object' == typeof ssgOptions) {
|
|
139
|
+
else if ('object' == typeof ssgOptions) {
|
|
140
140
|
const isSingle = (0, utils_namespaceObject.isSingleEntry)(entrypoints);
|
|
141
141
|
if (isSingle) return {
|
|
142
142
|
main: ssgOptions
|
|
@@ -145,8 +145,7 @@ const standardOptions = (ssgOptions, entrypoints, routes, server, ssgByEntries)=
|
|
|
145
145
|
opt[entry.entryName] = ssgOptions;
|
|
146
146
|
return opt;
|
|
147
147
|
}, {});
|
|
148
|
-
}
|
|
149
|
-
if ('function' == typeof ssgOptions) {
|
|
148
|
+
} else if ('function' == typeof ssgOptions) {
|
|
150
149
|
const intermediateOptions = {};
|
|
151
150
|
for (const entrypoint of entrypoints){
|
|
152
151
|
const { entryName } = entrypoint;
|
package/dist/esm/libs/make.mjs
CHANGED
package/dist/esm/libs/util.mjs
CHANGED
|
@@ -83,7 +83,7 @@ const standardOptions = (ssgOptions, entrypoints, routes, server, ssgByEntries)=
|
|
|
83
83
|
opt[entry.entryName] = ssgOptions;
|
|
84
84
|
return opt;
|
|
85
85
|
}, {});
|
|
86
|
-
if ('object' == typeof ssgOptions) {
|
|
86
|
+
else if ('object' == typeof ssgOptions) {
|
|
87
87
|
const isSingle = isSingleEntry(entrypoints);
|
|
88
88
|
if (isSingle) return {
|
|
89
89
|
main: ssgOptions
|
|
@@ -92,8 +92,7 @@ const standardOptions = (ssgOptions, entrypoints, routes, server, ssgByEntries)=
|
|
|
92
92
|
opt[entry.entryName] = ssgOptions;
|
|
93
93
|
return opt;
|
|
94
94
|
}, {});
|
|
95
|
-
}
|
|
96
|
-
if ('function' == typeof ssgOptions) {
|
|
95
|
+
} else if ('function' == typeof ssgOptions) {
|
|
97
96
|
const intermediateOptions = {};
|
|
98
97
|
for (const entrypoint of entrypoints){
|
|
99
98
|
const { entryName } = entrypoint;
|
|
@@ -85,7 +85,7 @@ const standardOptions = (ssgOptions, entrypoints, routes, server, ssgByEntries)=
|
|
|
85
85
|
opt[entry.entryName] = ssgOptions;
|
|
86
86
|
return opt;
|
|
87
87
|
}, {});
|
|
88
|
-
if ('object' == typeof ssgOptions) {
|
|
88
|
+
else if ('object' == typeof ssgOptions) {
|
|
89
89
|
const isSingle = isSingleEntry(entrypoints);
|
|
90
90
|
if (isSingle) return {
|
|
91
91
|
main: ssgOptions
|
|
@@ -94,8 +94,7 @@ const standardOptions = (ssgOptions, entrypoints, routes, server, ssgByEntries)=
|
|
|
94
94
|
opt[entry.entryName] = ssgOptions;
|
|
95
95
|
return opt;
|
|
96
96
|
}, {});
|
|
97
|
-
}
|
|
98
|
-
if ('function' == typeof ssgOptions) {
|
|
97
|
+
} else if ('function' == typeof ssgOptions) {
|
|
99
98
|
const intermediateOptions = {};
|
|
100
99
|
for (const entrypoint of entrypoints){
|
|
101
100
|
const { entryName } = entrypoint;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.9.
|
|
18
|
+
"version": "3.9.2",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"typesVersions": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@swc/helpers": "^0.5.17",
|
|
48
48
|
"node-mocks-http": "^1.17.2",
|
|
49
49
|
"normalize-path": "3.0.0",
|
|
50
|
-
"@modern-js/prod-server": "3.9.
|
|
51
|
-
"@modern-js/utils": "3.9.
|
|
50
|
+
"@modern-js/prod-server": "3.9.2",
|
|
51
|
+
"@modern-js/utils": "3.9.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react-router-dom": ">=7.13.1"
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"react-dom": "^19.2.8",
|
|
66
66
|
"react-router-dom": "^7.13.1",
|
|
67
67
|
"typescript": "^5",
|
|
68
|
-
"@modern-js/app-tools": "3.9.
|
|
68
|
+
"@modern-js/app-tools": "3.9.2",
|
|
69
69
|
"@modern-js/rslib": "2.68.10",
|
|
70
|
-
"@modern-js/types": "3.9.
|
|
70
|
+
"@modern-js/types": "3.9.2",
|
|
71
71
|
"@scripts/rstest-config": "2.66.0"
|
|
72
72
|
},
|
|
73
73
|
"sideEffects": false,
|