Skip to content

Commit b2fee2d

Browse files
authored
fix(deps): remove unused react-syntax-highlighter (#2138)
1 parent 8c9afd1 commit b2fee2d

File tree

4 files changed

+1
-179
lines changed

4 files changed

+1
-179
lines changed

packages/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
"react-dom": "^19.1.0",
7676
"react-lazy-with-preload": "^2.2.1",
7777
"react-router-dom": "^6.29.0",
78-
"react-syntax-highlighter": "^15.6.1",
7978
"rehype-external-links": "^3.0.0",
8079
"remark": "^15.0.1",
8180
"remark-gfm": "^4.0.1",

packages/core/src/node/initRsbuild.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,6 @@ async function createInternalBuildConfig(
196196
'@theme-assets': path.join(DEFAULT_THEME, '../assets'),
197197
'@rspress/core': PACKAGE_ROOT,
198198
'react-lazy-with-preload': require.resolve('react-lazy-with-preload'),
199-
'react-syntax-highlighter': path.dirname(
200-
require.resolve('react-syntax-highlighter/package.json'),
201-
),
202199
},
203200
},
204201
source: {

packages/theme-default/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
"lodash-es": "^4.17.21",
5757
"nprogress": "^0.2.0",
5858
"react": "^19.1.0",
59-
"react-dom": "^19.1.0",
60-
"react-syntax-highlighter": "^15.6.1"
59+
"react-dom": "^19.1.0"
6160
},
6261
"devDependencies": {
6362
"@microsoft/api-extractor": "^7.52.7",
@@ -74,7 +73,6 @@
7473
"@types/nprogress": "^0.2.3",
7574
"@types/react": "^18.3.21",
7675
"@types/react-dom": "^18.3.7",
77-
"@types/react-syntax-highlighter": "^15.5.13",
7876
"gray-matter": "4.0.3",
7977
"rsbuild-plugin-publint": "^0.3.1",
8078
"tailwindcss": "^3.4.17",

0 commit comments

Comments
 (0)