@modern-js/plugin-ssg 2.21.1 → 2.22.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/CHANGELOG.md +20 -0
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/libs/make.js +6 -2
- package/dist/cjs/libs/output.js +3 -1
- package/dist/cjs/libs/replace.js +6 -2
- package/dist/cjs/libs/util.js +33 -11
- package/dist/cjs/server/consts.js +3 -1
- package/dist/cjs/server/index.js +3 -1
- package/dist/cjs/server/prerender.js +3 -1
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @modern-js/plugin-ssg
|
|
2
2
|
|
|
3
|
+
## 2.22.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e2848a2]
|
|
8
|
+
- Updated dependencies [d4045ed]
|
|
9
|
+
- @modern-js/utils@2.22.1
|
|
10
|
+
|
|
11
|
+
## 2.22.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 3d48836: chore(deps): fix all missing peer dependencies
|
|
16
|
+
|
|
17
|
+
chore(deps): 修复缺少的 peer dependencies
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [3d48836]
|
|
20
|
+
- Updated dependencies [5050e8e]
|
|
21
|
+
- @modern-js/utils@2.22.0
|
|
22
|
+
|
|
3
23
|
## 2.21.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
10
12
|
const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
package/dist/cjs/libs/make.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
makeRender: ()
|
|
14
|
-
|
|
13
|
+
makeRender: function() {
|
|
14
|
+
return makeRender;
|
|
15
|
+
},
|
|
16
|
+
makeRoute: function() {
|
|
17
|
+
return makeRoute;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
17
21
|
const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
package/dist/cjs/libs/output.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "writeHtmlFile", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return writeHtmlFile;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
10
12
|
const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
package/dist/cjs/libs/replace.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
exist: ()
|
|
14
|
-
|
|
13
|
+
exist: function() {
|
|
14
|
+
return exist;
|
|
15
|
+
},
|
|
16
|
+
replaceRoute: function() {
|
|
17
|
+
return replaceRoute;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
17
21
|
const _normalizepath = /* @__PURE__ */ _interop_require_default._(require("normalize-path"));
|
package/dist/cjs/libs/util.js
CHANGED
|
@@ -10,17 +10,39 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
formatOutput: ()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
formatOutput: function() {
|
|
14
|
+
return formatOutput;
|
|
15
|
+
},
|
|
16
|
+
formatPath: function() {
|
|
17
|
+
return formatPath;
|
|
18
|
+
},
|
|
19
|
+
isDynamicUrl: function() {
|
|
20
|
+
return isDynamicUrl;
|
|
21
|
+
},
|
|
22
|
+
getUrlPrefix: function() {
|
|
23
|
+
return getUrlPrefix;
|
|
24
|
+
},
|
|
25
|
+
getOutput: function() {
|
|
26
|
+
return getOutput;
|
|
27
|
+
},
|
|
28
|
+
readJSONSpec: function() {
|
|
29
|
+
return readJSONSpec;
|
|
30
|
+
},
|
|
31
|
+
writeJSONSpec: function() {
|
|
32
|
+
return writeJSONSpec;
|
|
33
|
+
},
|
|
34
|
+
replaceWithAlias: function() {
|
|
35
|
+
return replaceWithAlias;
|
|
36
|
+
},
|
|
37
|
+
standardOptions: function() {
|
|
38
|
+
return standardOptions;
|
|
39
|
+
},
|
|
40
|
+
openRouteSSR: function() {
|
|
41
|
+
return openRouteSSR;
|
|
42
|
+
},
|
|
43
|
+
flattenRoutes: function() {
|
|
44
|
+
return flattenRoutes;
|
|
45
|
+
}
|
|
24
46
|
});
|
|
25
47
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
26
48
|
const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
package/dist/cjs/server/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "createServer", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return createServer;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
10
12
|
const _child_process = /* @__PURE__ */ _interop_require_default._(require("child_process"));
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "compile", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return compile;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
10
12
|
const _events = /* @__PURE__ */ _interop_require_default._(require("events"));
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.22.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"normalize-path": "^3.0.0",
|
|
64
64
|
"portfinder": "^1.0.28",
|
|
65
65
|
"@swc/helpers": "0.5.1",
|
|
66
|
-
"@modern-js/utils": "2.
|
|
66
|
+
"@modern-js/utils": "2.22.1"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"react-router-dom": ">=5.1.2"
|
|
@@ -78,13 +78,14 @@
|
|
|
78
78
|
"@types/node": "^14",
|
|
79
79
|
"jest": "^29",
|
|
80
80
|
"react": "^18",
|
|
81
|
+
"react-dom": "^18",
|
|
81
82
|
"react-router-dom": "^6.8.1",
|
|
82
83
|
"typescript": "^5",
|
|
83
|
-
"@modern-js/app-tools": "2.
|
|
84
|
-
"@modern-js/prod-server": "2.
|
|
85
|
-
"@modern-js/types": "2.
|
|
86
|
-
"@scripts/build": "2.
|
|
87
|
-
"@scripts/jest-config": "2.
|
|
84
|
+
"@modern-js/app-tools": "2.22.1",
|
|
85
|
+
"@modern-js/prod-server": "2.22.1",
|
|
86
|
+
"@modern-js/types": "2.22.1",
|
|
87
|
+
"@scripts/build": "2.22.1",
|
|
88
|
+
"@scripts/jest-config": "2.22.1"
|
|
88
89
|
},
|
|
89
90
|
"sideEffects": false,
|
|
90
91
|
"publishConfig": {
|