Missing Automatic Polyfills as Described in Docs #56020
Labels
area: adev
Angular.dev documentation
area: docs
Related to the documentation
good first issue
An issue that is suitable for first-time contributors; often a documentation issue.
help wanted
An issue that is suitable for a community contributor (based on its complexity/scope).
Milestone
Command
build
Is this a regression?
The previous version in which this bug was not present was
v8?
Description
As described at https://angular.dev/tools/cli/build#configuring-browser-compatibility, polyfills should be automatically added based on the browserslist configuration:
Angular V8 used to add core-js polyfills automatically according to StackOverflow discussions at https://stackoverflow.com/questions/56892243/is-not-core-js-needed-anymore:
However, currently no core-js dependencies are found and also no core-js polyfills are automatically added. Angular CLI uses
@babel/preset-env
when building Angular applicaitons, which has built-in support of automatic polyfilling based on core-js, but this feature is not enabled:https://github.com/angular/angular-cli/blob/c7205ea182f6c38231ce8fe8ab358dc7eab58d65/packages/angular_devkit/build_angular/src/tools/babel/presets/application.ts#L215-L224
Minimal Reproduction
N/A
Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: