@rspress/core 1.45.4 → 1.45.6

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -1222,7 +1222,7 @@ async function createInternalBuildConfig(userDocRoot, config, enableSSG, routeSe
1222
1222
  const CUSTOM_THEME_DIR = (null == config ? void 0 : config.themeDir) ?? __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(process.cwd(), 'theme');
1223
1223
  const baseOutDir = (null == config ? void 0 : config.outDir) ?? OUTPUT_DIR;
1224
1224
  const csrOutDir = baseOutDir;
1225
- const ssrOutDir = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(baseOutDir, 'ssr');
1225
+ const ssrOutDir = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(baseOutDir, '__ssg__');
1226
1226
  const DEFAULT_THEME = require.resolve('@rspress/theme-default');
1227
1227
  const base = (null == config ? void 0 : config.base) ?? '';
1228
1228
  const assetPrefix = isProduction() ? (0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_baa012d0__.removeTrailingSlash)((null == config ? void 0 : null == (_config_builderConfig = config.builderConfig) ? void 0 : null == (_config_builderConfig_output = _config_builderConfig.output) ? void 0 : _config_builderConfig_output.assetPrefix) ?? base) : '';
@@ -1549,7 +1549,7 @@ async function dev(options) {
1549
1549
  }
1550
1550
  }
1551
1551
  var package_namespaceObject = {
1552
- i8: "1.45.4"
1552
+ i8: "1.45.6"
1553
1553
  };
1554
1554
  async function renderFrontmatterHead(route) {
1555
1555
  if (!isRouteMeta(route)) return '';
@@ -1603,7 +1603,7 @@ async function renderPages(appDirectory, config, pluginDriver, ssgConfig) {
1603
1603
  __WEBPACK_EXTERNAL_MODULE__rspress_shared_logger_4374e44a__.logger.info('Rendering pages...');
1604
1604
  const startTime = Date.now();
1605
1605
  const outputPath = (null == config ? void 0 : config.outDir) ?? (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(appDirectory, OUTPUT_DIR);
1606
- const ssrBundlePath = (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(outputPath, 'ssr', 'main.cjs');
1606
+ const ssrBundlePath = (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(outputPath, '__ssg__', 'main.cjs');
1607
1607
  try {
1608
1608
  let render;
1609
1609
  if (ssgConfig) try {
@@ -1674,7 +1674,7 @@ async function renderPages(appDirectory, config, pluginDriver, ssgConfig) {
1674
1674
  });
1675
1675
  await __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__["default"].writeFile((0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(outputPath, fileName), html);
1676
1676
  }));
1677
- if (!(0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_baa012d0__.isDebugMode)()) await emptyDir((0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(outputPath, 'ssr'));
1677
+ if (!(0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_baa012d0__.isDebugMode)()) await emptyDir((0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(outputPath, '__ssg__'));
1678
1678
  await emptyDir((0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(outputPath, 'html'));
1679
1679
  const totalTime = Date.now() - startTime;
1680
1680
  __WEBPACK_EXTERNAL_MODULE__rspress_shared_logger_4374e44a__.logger.success(`Pages rendered in ${__WEBPACK_EXTERNAL_MODULE_picocolors__["default"].yellow(totalTime)} ms.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/core",
3
- "version": "1.45.4",
3
+ "version": "1.45.6",
4
4
  "description": "The Rspress Documentation Framework",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -73,13 +73,13 @@
73
73
  "unified": "^10.1.2",
74
74
  "unist-util-visit": "^4.1.2",
75
75
  "unist-util-visit-children": "^2.0.2",
76
- "@rspress/plugin-container-syntax": "1.45.4",
77
- "@rspress/plugin-last-updated": "1.45.4",
78
- "@rspress/runtime": "1.45.4",
79
- "@rspress/shared": "1.45.4",
80
- "@rspress/plugin-medium-zoom": "1.45.4",
81
- "@rspress/plugin-auto-nav-sidebar": "1.45.4",
82
- "@rspress/theme-default": "1.45.4"
76
+ "@rspress/plugin-auto-nav-sidebar": "1.45.6",
77
+ "@rspress/plugin-container-syntax": "1.45.6",
78
+ "@rspress/plugin-medium-zoom": "1.45.6",
79
+ "@rspress/runtime": "1.45.6",
80
+ "@rspress/plugin-last-updated": "1.45.6",
81
+ "@rspress/shared": "1.45.6",
82
+ "@rspress/theme-default": "1.45.6"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@microsoft/api-extractor": "^7.49.2",