@rspress/core 1.3.0 → 1.3.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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -4798,8 +4798,8 @@ async function createInternalBuildConfig(userDocRoot, config, isSSR, routeServic
|
|
|
4798
4798
|
const { default: fs10 } = await import("@modern-js/utils/fs-extra");
|
|
4799
4799
|
const CUSTOM_THEME_DIR = config?.themeDir ?? path9.join(process.cwd(), "theme");
|
|
4800
4800
|
const outDir = config?.outDir ?? OUTPUT_DIR;
|
|
4801
|
-
const
|
|
4802
|
-
const themeDir = await fs10.pathExists(CUSTOM_THEME_DIR) ? CUSTOM_THEME_DIR :
|
|
4801
|
+
const DEFAULT_THEME = __require.resolve("@rspress/theme-default");
|
|
4802
|
+
const themeDir = await fs10.pathExists(CUSTOM_THEME_DIR) ? CUSTOM_THEME_DIR : DEFAULT_THEME;
|
|
4803
4803
|
const checkDeadLinks = (config?.markdown?.checkDeadLinks && !isSSR) ?? false;
|
|
4804
4804
|
const base = config?.base ?? "";
|
|
4805
4805
|
const publicDir = path9.join(userDocRoot, "public");
|
|
@@ -4851,7 +4851,7 @@ async function createInternalBuildConfig(userDocRoot, config, isSSR, routeServic
|
|
|
4851
4851
|
alias: {
|
|
4852
4852
|
"@mdx-js/react": __require.resolve("@mdx-js/react"),
|
|
4853
4853
|
"@theme": themeDir,
|
|
4854
|
-
"@/theme-default":
|
|
4854
|
+
"@/theme-default": DEFAULT_THEME,
|
|
4855
4855
|
"@rspress/core": PACKAGE_ROOT,
|
|
4856
4856
|
"react-lazy-with-preload": __require.resolve("react-lazy-with-preload"),
|
|
4857
4857
|
"react-syntax-highlighter": path9.dirname(
|