-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-router-v5-deps
- Loading branch information
Showing
8 changed files
with
77 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@modern-js/module-tools': patch | ||
--- | ||
|
||
perf(module-tools): log error detail which may throw by own plugin and complete error stack | ||
perf(module-tools): 补齐错误栈并且打印错误细节,因为这错误可能并不是 esbuild 抛出的,而是我们自己的插件抛出的 |
32 changes: 32 additions & 0 deletions
32
packages/document/builder-doc/theme/components/Announcement/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { useLang } from 'rspress/runtime'; | ||
|
||
export function Announcement() { | ||
const lang = useLang(); | ||
|
||
return ( | ||
<div | ||
style={{ | ||
height: '2rem', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
backgroundColor: 'rgb(88 209 126 / 0.5)', | ||
}} | ||
> | ||
<a | ||
href="https://rsbuild.dev/" | ||
target="_blank" | ||
rel="noopener noreferrer " | ||
style={{ | ||
textDecorationLine: 'underline', | ||
fontWeight: 700, | ||
color: 'rgb(55 65 81)', | ||
}} | ||
> | ||
{lang === 'zh' | ||
? 'Modern.js Builder 已升级为 Rsbuild, 欢迎使用 Rsbuild 👏🏻' | ||
: 'Modern.js Builder has been upgraded to Rsbuild, welcome to use Rsbuild 👏🏻'} | ||
</a> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Theme from 'rspress/theme'; | ||
import { NoSSR } from 'rspress/runtime'; | ||
import { Announcement } from './components/Announcement'; | ||
|
||
const Layout = () => ( | ||
<Theme.Layout | ||
beforeNav={ | ||
<NoSSR> | ||
<Announcement /> | ||
</NoSSR> | ||
} | ||
/> | ||
); | ||
|
||
// eslint-disable-next-line import/export | ||
export * from 'rspress/theme'; | ||
|
||
export default { | ||
...Theme, | ||
Layout, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters