Skip to content

Commit cba4a91

Browse files
authored
docs: recommend TypeScript 7 for type checking (#8162)
1 parent 3d2784a commit cba4a91

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

website/docs/en/guide/optimization/build-performance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ While Rsbuild delivers excellent build performance out of the box, certain JavaS
5050

5151
- [@rsbuild/plugin-babel](/plugins/list/plugin-babel): This plugin uses Babel. We recommend using the more performant [SWC](/guide/configuration/swc) for code transformation instead.
5252
- [@rsbuild/plugin-less](/plugins/list/plugin-less): The Less compiler has relatively poor performance. Consider using [@rsbuild/plugin-sass](/plugins/list/plugin-sass) or other performant CSS solutions instead.
53-
- [@rsbuild/plugin-type-check](https://github.com/rstackjs/rsbuild-plugin-type-check): The default TypeScript-based type-checking approach has relatively poor performance. We recommend enabling experimental [typescript-go support](https://github.com/rstackjs/rsbuild-plugin-type-check#typescript-go-support) to improve type-checking performance.
53+
- [@rsbuild/plugin-type-check](https://github.com/rstackjs/rsbuild-plugin-type-check): Use TypeScript 7 or later for faster type checking. See [TypeScript 7+ support](https://github.com/rstackjs/rsbuild-plugin-type-check#typescript-7-support) for details.
5454
- [terser-webpack-plugin](https://www.npmjs.com/package/terser-webpack-plugin) or [minimizer-webpack-plugin](https://www.npmjs.com/package/minimizer-webpack-plugin): You can replace Terser with faster minimizers like Rsbuild's built-in [SWC](/guide/configuration/swc) minifier.
5555

5656
### Optimize Tailwind CSS

website/docs/zh/guide/optimization/build-performance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Rsbuild 提供了 [performance.buildCache](/config/performance/build-cache) 配
5050

5151
- [@rsbuild/plugin-babel](/plugins/list/plugin-babel):该插件基于 Babel 实现,建议优先使用性能更优的 [SWC](/guide/configuration/swc) 进行代码转换。
5252
- [@rsbuild/plugin-less](/plugins/list/plugin-less):Less 编译器性能相对较差,推荐使用 [@rsbuild/plugin-sass](/plugins/list/plugin-sass) 或其他高性能的 CSS 方案。
53-
- [@rsbuild/plugin-type-check](https://github.com/rstackjs/rsbuild-plugin-type-check)默认使用的基于 TypeScript 的类型检查方式性能相对较差,推荐开启实验性的 [typescript-go 支持](https://github.com/rstackjs/rsbuild-plugin-type-check#typescript-go-support),提升类型检查性能
53+
- [@rsbuild/plugin-type-check](https://github.com/rstackjs/rsbuild-plugin-type-check)推荐使用 TypeScript 7 或更高版本以提升类型检查性能,详见 [TypeScript 7+ 支持](https://github.com/rstackjs/rsbuild-plugin-type-check#typescript-7-support)
5454
- [terser-webpack-plugin](https://www.npmjs.com/package/terser-webpack-plugin)[minimizer-webpack-plugin](https://www.npmjs.com/package/minimizer-webpack-plugin):可以将 Terser 替换为更快的压缩工具,例如使用 Rsbuild 内置的 [SWC](/guide/configuration/swc)
5555

5656
### 优化 Tailwind CSS

0 commit comments

Comments
 (0)