Skip to content

Commit f668271

Browse files
committed
chore: patch @rspress/plugin-llms to fix build error
1 parent bcca339 commit f668271

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/index.js b/dist/index.js
2+
index c47a273839fed26bdfccc00bc90fbc1df95e43c9..bf8392629cf394717fa08cdcfeb5ce48c73f5856 100644
3+
--- a/dist/index.js
4+
+++ b/dist/index.js
5+
@@ -125,7 +125,7 @@ const rsbuildPluginLlms = ({ disableSSGRef, baseRef, pageDataList, routes, title
6+
const disableSSG = disableSSGRef.current;
7+
const newPageDataList = mergeRouteMetaWithPageData(routes, pageDataList, langRef.current, include, exclude);
8+
const navList = Array.isArray(nav) ? nav.map((i)=>{
9+
- const nav = i.nav.default || i.nav;
10+
+ const nav = i.nav?.default || i.nav || [];
11+
const lang = i.lang;
12+
return nav.map((i)=>({
13+
...i,

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"prettier": "^3.5.3",
3838
"typescript": "^5.8.3"
3939
},
40+
"resolutions": {
41+
"@rspress/[email protected]": "patch:@rspress/plugin-llms@npm%3A2.0.0-beta.34#./.yarn/patches/@rspress-plugin-llms-npm-2.0.0-beta.34-d374542281.patch"
42+
},
4043
"commitlint": {
4144
"extends": [
4245
"@commitlint/config-conventional"

yarn.lock

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3828,6 +3828,21 @@ __metadata:
38283828
languageName: node
38293829
linkType: hard
38303830

3831+
"@rspress/plugin-llms@patch:@rspress/plugin-llms@npm%3A2.0.0-beta.34#./.yarn/patches/@rspress-plugin-llms-npm-2.0.0-beta.34-d374542281.patch::locator=root-workspace-0b6124%40workspace%3A.":
3832+
version: 2.0.0-beta.34
3833+
resolution: "@rspress/plugin-llms@patch:@rspress/plugin-llms@npm%3A2.0.0-beta.34#./.yarn/patches/@rspress-plugin-llms-npm-2.0.0-beta.34-d374542281.patch::version=2.0.0-beta.34&hash=4f23cf&locator=root-workspace-0b6124%40workspace%3A."
3834+
dependencies:
3835+
remark-mdx: ^3.1.1
3836+
remark-parse: ^11.0.0
3837+
remark-stringify: ^11.0.0
3838+
unified: ^11.0.5
3839+
unist-util-visit: ^5.0.0
3840+
peerDependencies:
3841+
"@rspress/core": ^2.0.0-beta.34
3842+
checksum: 50fc80713bac495004159fc930e0d6706776529f7e5c43a933b7b8e9e6bdf33c79b1f0efae9d513262489f46ee12ac1dced1737a10b28775fd2cb5d90e57fb72
3843+
languageName: node
3844+
linkType: hard
3845+
38313846
"@rspress/plugin-sitemap@npm:2.0.0-beta.34":
38323847
version: 2.0.0-beta.34
38333848
resolution: "@rspress/plugin-sitemap@npm:2.0.0-beta.34"

0 commit comments

Comments
 (0)