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

output.polyfill

  • Type: 'entry' | 'usage' | 'ua' | 'off'
  • Default: 'entry'

Via output.polyfill you can configure how the polyfill is injected.

Modern.js also provides a runtime Polyfill solution based on browser UA information. For detailed usage instructions, please refer to Polyfill At Runtime.

Info

The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - output.polyfill.