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/api/rspeedy.output.polyfill.md.
这是开发预览网站。请访问正式文档 lynx-stack.dev

Home > @lynx-js/rspeedy > Output > polyfill

Output.polyfill property

Controls automatic polyfill injection. Install core-js in the application when using 'usage' or 'entry'.

Signature:

polyfill?: 'off' | 'usage' | 'entry' | undefined;

Default Value

'off'

Remarks

Lynx builds use Chrome 92 as an approximation to select polyfills. The'entry' mode also requires an explicit core-js import.

Example

output: { polyfill: 'usage' }