rspress 1.35.3 → 1.36.0
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/bin/rspress.js +13 -1
- package/package.json +4 -4
package/bin/rspress.js
CHANGED
@@ -1,3 +1,15 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
|
2
|
+
import nodeModule from 'node:module';
|
3
|
+
|
4
|
+
// enable on-disk code caching of all modules loaded by Node.js
|
5
|
+
// requires Nodejs >= 22.8.0
|
6
|
+
const { enableCompileCache } = nodeModule;
|
7
|
+
if (enableCompileCache) {
|
8
|
+
try {
|
9
|
+
enableCompileCache();
|
10
|
+
} catch {
|
11
|
+
// ignore errors
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
3
15
|
import('../dist/index.js');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "rspress",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.36.0",
|
4
4
|
"type": "module",
|
5
5
|
"types": "./dist/index.d.ts",
|
6
6
|
"main": "./dist/index.js",
|
@@ -28,12 +28,12 @@
|
|
28
28
|
}
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@rsbuild/core": "~1.0.
|
31
|
+
"@rsbuild/core": "~1.0.19",
|
32
32
|
"cac": "^6.7.14",
|
33
33
|
"chalk": "5.3.0",
|
34
34
|
"chokidar": "^3.6.0",
|
35
|
-
"@rspress/core": "1.
|
36
|
-
"@rspress/shared": "1.
|
35
|
+
"@rspress/core": "1.36.0",
|
36
|
+
"@rspress/shared": "1.36.0"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@types/jest": "~29.5.14",
|