performance.removeConsole
- 类型:
boolean | ConsoleType[] - 默认值:
false
在生产环境构建时,是否自动移除代码中的 console.[methodName]。
Info
该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 Rsbuild - performance.removeConsole。
boolean | ConsoleType[]false在生产环境构建时,是否自动移除代码中的 console.[methodName]。
该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 Rsbuild - performance.removeConsole。