From fd61a4628bc7aa64cf4dabcbc12a8f9fcc47288b Mon Sep 17 00:00:00 2001 From: Char2s Date: Thu, 23 May 2024 16:49:34 +0800 Subject: [PATCH] docs: correct browserslist compatibility docs (#56027) PR Close #56027 --- adev/src/content/tools/cli/build.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adev/src/content/tools/cli/build.md b/adev/src/content/tools/cli/build.md index d708aea6551..a78d7415ba6 100644 --- a/adev/src/content/tools/cli/build.md +++ b/adev/src/content/tools/cli/build.md @@ -130,7 +130,7 @@ If the best option is to use a CommonJS dependency, you can disable these warnin ## Configuring browser compatibility The Angular CLI uses [Browserslist](https://github.com/browserslist/browserslist) to ensure compatibility with different browser versions. -Depending on supported browsers, Angular will automatically polyfill and transform certain JavaScript and CSS features to ensure the built application does not use a feature which has not been implemented by a supported browser. +Depending on supported browsers, Angular will automatically transform certain JavaScript and CSS features to ensure the built application does not use a feature which has not been implemented by a supported browser. However, the Angular CLI will not automatically add polyfills to supplement missing Web APIs. Use the `polyfills` option in `angular.json` to add polyfills. Internally, the Angular CLI uses the below default `browserslist` configuration which matches the [browsers that are supported](reference/versions#browser-support) by Angular.