From f3d7e2bf50d54379409e0dfd3537659f540a0fef Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 22 Jul 2026 15:06:15 +0800 Subject: [PATCH] docs: recommend TypeScript 7 for type checking --- website/docs/en/guide/optimization/build-performance.mdx | 2 +- website/docs/zh/guide/optimization/build-performance.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/en/guide/optimization/build-performance.mdx b/website/docs/en/guide/optimization/build-performance.mdx index 7957b0ce8d..722b2769f4 100644 --- a/website/docs/en/guide/optimization/build-performance.mdx +++ b/website/docs/en/guide/optimization/build-performance.mdx @@ -50,7 +50,7 @@ While Rsbuild delivers excellent build performance out of the box, certain JavaS - [@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. - [@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. -- [@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. +- [@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. - [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. ### Optimize Tailwind CSS diff --git a/website/docs/zh/guide/optimization/build-performance.mdx b/website/docs/zh/guide/optimization/build-performance.mdx index e037c42ec4..5c112a9763 100644 --- a/website/docs/zh/guide/optimization/build-performance.mdx +++ b/website/docs/zh/guide/optimization/build-performance.mdx @@ -50,7 +50,7 @@ Rsbuild 提供了 [performance.buildCache](/config/performance/build-cache) 配 - [@rsbuild/plugin-babel](/plugins/list/plugin-babel):该插件基于 Babel 实现,建议优先使用性能更优的 [SWC](/guide/configuration/swc) 进行代码转换。 - [@rsbuild/plugin-less](/plugins/list/plugin-less):Less 编译器性能相对较差,推荐使用 [@rsbuild/plugin-sass](/plugins/list/plugin-sass) 或其他高性能的 CSS 方案。 -- [@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),提升类型检查性能。 +- [@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)。 - [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)。 ### 优化 Tailwind CSS