@rspress/core 2.0.0-beta.26 → 2.0.0-beta.27
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/cli.js +1 -1
- package/dist/index.js +8 -3
- package/dist/renderPageWorker.js +1 -1
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import picocolors from "picocolors";
|
|
|
6
6
|
import { build, dev, serve } from "./index.js";
|
|
7
7
|
import node_fs from "node:fs";
|
|
8
8
|
import { DEFAULT_CONFIG_EXTENSIONS, DEFAULT_CONFIG_NAME } from "@rspress/shared/constants";
|
|
9
|
-
var package_namespaceObject = JSON.parse('{"i8":"2.0.0-beta.
|
|
9
|
+
var package_namespaceObject = JSON.parse('{"i8":"2.0.0-beta.27"}');
|
|
10
10
|
const findConfig = (basePath)=>DEFAULT_CONFIG_EXTENSIONS.map((ext)=>basePath + ext).find(node_fs.existsSync);
|
|
11
11
|
async function loadConfigFile(customConfigFile) {
|
|
12
12
|
const baseDir = process.cwd();
|
package/dist/index.js
CHANGED
|
@@ -151,7 +151,7 @@ function defineConfig(config) {
|
|
|
151
151
|
}
|
|
152
152
|
var external_node_path_ = __webpack_require__("node:path");
|
|
153
153
|
var external_node_url_ = __webpack_require__("node:url");
|
|
154
|
-
var package_namespaceObject = JSON.parse('{"i8":"2.0.0-beta.
|
|
154
|
+
var package_namespaceObject = JSON.parse('{"i8":"2.0.0-beta.27"}');
|
|
155
155
|
const RSPRESS_VERSION = package_namespaceObject.i8;
|
|
156
156
|
const isProduction = ()=>'production' === process.env.NODE_ENV;
|
|
157
157
|
const importStatementRegex = /import\s+(.*?)\s+from\s+(['"])(.*?)(?:"|');?/gm;
|
|
@@ -1931,6 +1931,8 @@ function isPluginIncluded(config, pluginName) {
|
|
|
1931
1931
|
return Boolean(config.builderConfig?.plugins?.some((plugin)=>plugin && plugin.name === pluginName));
|
|
1932
1932
|
}
|
|
1933
1933
|
const initRsbuild_require = createRequire(import.meta.url);
|
|
1934
|
+
const initRsbuild_filename = (0, external_node_url_.fileURLToPath)(import.meta.url);
|
|
1935
|
+
const initRsbuild_dirname = external_node_path_["default"].dirname(initRsbuild_filename);
|
|
1934
1936
|
async function createInternalBuildConfig(userDocRoot, config, enableSSG, routeService, pluginDriver) {
|
|
1935
1937
|
const cwd = process.cwd();
|
|
1936
1938
|
const CUSTOM_THEME_DIR = config?.themeDir ?? external_node_path_["default"].join(process.cwd(), 'theme');
|
|
@@ -2030,7 +2032,10 @@ async function createInternalBuildConfig(userDocRoot, config, enableSSG, routeSe
|
|
|
2030
2032
|
DEFAULT_THEME
|
|
2031
2033
|
],
|
|
2032
2034
|
'@theme-assets': external_node_path_["default"].join(DEFAULT_THEME, '../assets'),
|
|
2033
|
-
'react-lazy-with-preload': initRsbuild_require.resolve('react-lazy-with-preload')
|
|
2035
|
+
'react-lazy-with-preload': initRsbuild_require.resolve('react-lazy-with-preload'),
|
|
2036
|
+
'@rspress/core/theme': external_node_path_["default"].join(initRsbuild_dirname, 'theme.js'),
|
|
2037
|
+
'@rspress/core/runtime': external_node_path_["default"].join(initRsbuild_dirname, 'runtime.js'),
|
|
2038
|
+
'@rspress/core/shiki-transformers': external_node_path_["default"].join(initRsbuild_dirname, 'shiki-transformers.js')
|
|
2034
2039
|
}
|
|
2035
2040
|
},
|
|
2036
2041
|
source: {
|
|
@@ -2047,7 +2052,7 @@ async function createInternalBuildConfig(userDocRoot, config, enableSSG, routeSe
|
|
|
2047
2052
|
...'false' !== process.env.RSPRESS_PERSISTENT_CACHE ? {
|
|
2048
2053
|
buildCache: {
|
|
2049
2054
|
buildDependencies: [
|
|
2050
|
-
|
|
2055
|
+
initRsbuild_filename,
|
|
2051
2056
|
pluginDriver.getConfigFilePath()
|
|
2052
2057
|
],
|
|
2053
2058
|
cacheDigest: [
|
package/dist/renderPageWorker.js
CHANGED
|
@@ -102,7 +102,7 @@ function hintSSGFailed() {
|
|
|
102
102
|
1. Fix code to make it SSR-compatible.
|
|
103
103
|
2. Set \`ssg: false\` if the code in node_modules may be difficult to fix, but the SSG feature will be lost.`);
|
|
104
104
|
}
|
|
105
|
-
var package_namespaceObject = JSON.parse('{"i8":"2.0.0-beta.
|
|
105
|
+
var package_namespaceObject = JSON.parse('{"i8":"2.0.0-beta.27"}');
|
|
106
106
|
const RSPRESS_VERSION = package_namespaceObject.i8;
|
|
107
107
|
`{
|
|
108
108
|
const saved = localStorage.getItem('${APPEARANCE_KEY}')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/core",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.27",
|
|
4
4
|
"description": "The Rspress Documentation Framework",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"unified": "^11.0.5",
|
|
87
87
|
"unist-util-visit": "^5.0.0",
|
|
88
88
|
"unist-util-visit-children": "^3.0.0",
|
|
89
|
-
"@rspress/runtime": "2.0.0-beta.
|
|
90
|
-
"@rspress/shared": "2.0.0-beta.
|
|
91
|
-
"@rspress/theme-default": "2.0.0-beta.
|
|
89
|
+
"@rspress/runtime": "2.0.0-beta.27",
|
|
90
|
+
"@rspress/shared": "2.0.0-beta.27",
|
|
91
|
+
"@rspress/theme-default": "2.0.0-beta.27"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@microsoft/api-extractor": "^7.52.10",
|