Skip to main content

Polyfills

Providing polyfills

Polyfilling is driven by two pieces that work together:

1. Enable coreJS in archibald.json:

{
...
"cli": {
"optimization": {
"coreJS": true
}
},
...
}

With cli.optimization.coreJS enabled, core-js polyfills are included automatically based on the browser support targets.

2. Provide a .browserslistrc file in the root of the project:

[browser]
> 0.25%
not dead

[server]
node 24
note

Both are required: coreJS only takes effect when a .browserslistrc file exists in the project root — the browser targets define which polyfills are needed.