For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/build/output/minify/background-options.md.
Lynx
  • 简体中文
  • output.minify.backgroundOptions

    optional backgroundOptions?: SwcJsMinimizerRspackPluginOptions

    Lynx 新增配置

    此配置由 pluginLynx 新增,不属于 Rsbuild 配置。在 rsbuild.config.ts 中,将它传给 pluginLynx({ ... })。

    为后台线程 bundle 覆盖 Rsbuild 的 output.minify.jsOptions。

    备注

    该选项会被深度合并到 output.minify.jsOptions 中。它主要与 ReactLynx 的双线程产物配合使用,使主线程和后台线程的 bundle 可以使用不同的压缩规则。

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。