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.