Skip to content

Commit e1d4aac

Browse files
authored
docs: update Rspack v0.6 link (#2118)
1 parent 49ed566 commit e1d4aac

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

packages/core/src/provider/initPlugins.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { join } from 'node:path';
22
import {
33
getDistPath,
4-
onExitProcess,
54
removeLeadingSlash,
65
type TransformFn,
76
type BundlerChain,
@@ -132,7 +131,7 @@ export function getPluginAPI({
132131
});
133132
};
134133

135-
onExitProcess(() => {
134+
process.on('exit', () => {
136135
hooks.onExit.call();
137136
});
138137

packages/document/docs/en/community/releases/v0-6.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Notable changes:
2424

2525
Rsbuild has upgraded the dependent Rspack to version v0.6, and adapted the breaking changes of CSS modules contained in Rspack v0.6.
2626

27-
In the new version, Rspack has enabled the new tree shaking algorithm by default, resulting in a significant improvement in bundle size and artifact stability. Please refer to the [Rspack 0.6 release announcement](https://github.com/web-infra-dev/rspack/releases/tag/v0.6.0) to learn more.
27+
In the new version, Rspack has enabled the new tree shaking algorithm by default, resulting in a significant improvement in bundle size and artifact stability. Please refer to the [Rspack 0.6 release announcement](https://rspack.dev/blog/announcing-0.6) to learn more.
2828

2929
---
3030

packages/document/docs/zh/community/releases/v0-6.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Rsbuild v0.6 已与 Rspack v0.6 同步发布!
2424

2525
Rsbuild 已将依赖的 Rspack 升级至 v0.6 版本,并适配了 Rspack v0.6 包含的 CSS Modules 不兼容更新。
2626

27-
在新版本中,Rspack 默认开启了新版 tree shaking 算法,使产物体积和产物稳定性得到显著提升。请参考 [Rspack 0.6 发布公告](https://github.com/web-infra-dev/rspack/releases/tag/v0.6.0) 了解更多。
27+
在新版本中,Rspack 默认开启了新版 tree shaking 算法,使产物体积和产物稳定性得到显著提升。请参考 [Rspack 0.6 发布公告](https://rspack.dev/blog/announcing-0.6) 了解更多。
2828

2929
---
3030

packages/shared/src/utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,6 @@ const colorList: Colors[] = ['green', 'cyan', 'yellow', 'blue', 'magenta'];
281281
export const getProgressColor = (index: number) =>
282282
colorList[index % colorList.length];
283283

284-
export function onExitProcess(listener: NodeJS.ExitListener) {
285-
process.on('exit', listener);
286-
}
287-
288284
export const isHtmlDisabled = (
289285
config: NormalizedConfig,
290286
target: RsbuildTarget,

0 commit comments

Comments
 (0)