close
logo
Rslib
指南
配置
博客
English
简体中文
指南
配置
博客
English
简体中文
logo
Rslib
配置总览

Lib 配置

lib.format
lib.bundle
lib.autoExtension
lib.autoExternal
lib.redirect
lib.syntax
lib.externalHelpers
lib.banner
lib.footer
lib.dts
lib.shims
lib.id
lib.umdName
lib.outBase
lib.experiments

Rsbuild 配置

logLevel
resolve
source
output
tools
performance
plugins
📝 在 GitHub 上编辑此页
上一页tools
下一页plugins

#performance

与性能相关的选项。

#performance.buildCache performance.buildCacheperformance.buildCache

用于启用或配置持久化构建缓存。

Rslib 在 v0.17.3 版本中默认启用了持久化构建缓存。

#performance.printFileSize performance.printFileSizeperformance.printFileSize

是否在构建后输出所有静态资源文件的体积。

#performance.removeConsole performance.removeConsoleperformance.removeConsole

是否自动移除代码中的 console.[methodName]。