Skip to content

Commit 7bd6122

Browse files
authored
refactor(infra): 🔥remove some useless code (#1860)
1 parent fc12eec commit 7bd6122

File tree

5 files changed

+2
-15
lines changed

5 files changed

+2
-15
lines changed

‎packages/core/src/node/initRsbuild.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,12 @@ async function createInternalBuildConfig(
156156
...detectCustomIconAlias,
157157
'@mdx-js/react': require.resolve('@mdx-js/react'),
158158
'@theme': [CUSTOM_THEME_DIR, DEFAULT_THEME],
159-
'@/theme-default': DEFAULT_THEME,
159+
'@theme-assets': path.join(DEFAULT_THEME, '../assets'),
160160
'@rspress/core': PACKAGE_ROOT,
161161
'react-lazy-with-preload': require.resolve('react-lazy-with-preload'),
162162
'react-syntax-highlighter': path.dirname(
163163
require.resolve('react-syntax-highlighter/package.json'),
164164
),
165-
'@theme-assets': path.join(DEFAULT_THEME, '../assets'),
166165
},
167166
},
168167
source: {

‎packages/runtime/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"files": [
3333
"dist",
3434
"src",
35-
"runtime.ts",
3635
"server.js"
3736
],
3837
"scripts": {

‎packages/runtime/rslib.config.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ const COMMON_EXTERNALS = [
1010
'virtual-global-styles',
1111
'virtual-global-components',
1212
'virtual-search-hooks',
13-
'@/runtime',
14-
'@runtime',
1513
'virtual-i18n-text',
1614
'virtual-prism-languages',
1715
];

‎packages/theme-default/src/logic/useRerender.ts‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎packages/theme-default/src/logic/utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { isEqualPath } from '@rspress/runtime';
22
import htmr from 'htmr';
3-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
43
import React from 'react';
54

65
export function isActive(
@@ -70,6 +69,7 @@ const DELETE_TEXT_PATTERN = /\~{2}(.*?)\~{2}/g;
7069
* In this method, we will render the markdown text to inline html and support basic markdown syntax, including the following:
7170
* - bold
7271
* - emphasis
72+
* - delete
7373
* - inline code
7474
* @param text The markdown text to render.
7575
*/

0 commit comments

Comments
 (0)