@rspress/core 2.0.0-beta.30 → 2.0.0-beta.31

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 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('{"rE":"2.0.0-beta.30"}');
9
+ var package_namespaceObject = JSON.parse('{"rE":"2.0.0-beta.31"}');
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
@@ -114,7 +114,7 @@ function defineConfig(config) {
114
114
  }
115
115
  var external_node_path_ = __webpack_require__("node:path");
116
116
  var external_node_url_ = __webpack_require__("node:url");
117
- var package_namespaceObject = JSON.parse('{"rE":"2.0.0-beta.30"}');
117
+ var package_namespaceObject = JSON.parse('{"rE":"2.0.0-beta.31"}');
118
118
  const RSPRESS_VERSION = package_namespaceObject.rE;
119
119
  const isProduction = ()=>'production' === process.env.NODE_ENV;
120
120
  const importStatementRegex = /import\s+(.*?)\s+from\s+(['"])(.*?)(?:"|');?/gm;
@@ -2071,6 +2071,10 @@ async function createInternalBuildConfig(userDocRoot, config, enableSSG, routeSe
2071
2071
  });
2072
2072
  if (chain.plugins.has(CHAIN_ID.PLUGIN.REACT_FAST_REFRESH)) chain.plugin(CHAIN_ID.PLUGIN.REACT_FAST_REFRESH).tap((options)=>{
2073
2073
  options[0] ??= {};
2074
+ options[0].test = [
2075
+ /\.([cm]js|[jt]sx?|flow)$/i,
2076
+ shared_.MDX_OR_MD_REGEXP
2077
+ ];
2074
2078
  options[0].include = [
2075
2079
  /\.([cm]js|[jt]sx?|flow)$/i,
2076
2080
  shared_.MDX_OR_MD_REGEXP
@@ -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('{"rE":"2.0.0-beta.30"}');
105
+ var package_namespaceObject = JSON.parse('{"rE":"2.0.0-beta.31"}');
106
106
  const RSPRESS_VERSION = package_namespaceObject.rE;
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.30",
3
+ "version": "2.0.0-beta.31",
4
4
  "description": "The Rspress Documentation Framework",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -82,9 +82,9 @@
82
82
  "unified": "^11.0.5",
83
83
  "unist-util-visit": "^5.0.0",
84
84
  "unist-util-visit-children": "^3.0.0",
85
- "@rspress/runtime": "2.0.0-beta.30",
86
- "@rspress/shared": "2.0.0-beta.30",
87
- "@rspress/theme-default": "2.0.0-beta.30"
85
+ "@rspress/runtime": "2.0.0-beta.31",
86
+ "@rspress/shared": "2.0.0-beta.31",
87
+ "@rspress/theme-default": "2.0.0-beta.31"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@microsoft/api-extractor": "^7.52.11",