For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/configure/app/output/polyfill.md.
  • 简体中文
  • output.polyfill

    • 类型: 'entry' | 'usage' | 'ua' | 'off'
    • 默认值: 'entry'

    通过 output.polyfill 你可以配置 Polyfill 的注入方式。

    Modern.js 还支持了基于浏览器 UA 信息的运行时按需 Polyfill 方案,具体使用姿势可查看 运行时按需 Polyfill

    Info

    该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 Rsbuild - output.polyfill。