From 665b986896d744890693f192c48a1e2d6d4175e7 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 24 May 2021 09:53:03 +0200 Subject: [PATCH] docs: CLI users polyfills (#42263) With this change we remove polyfills that are listed in suggested/mandatory but are not needed by Angular CLI users, since the Angular CLI will include these polyfills by default. Closes #39793 PR Close #42263 --- aio/content/guide/browser-support.md | 57 +--------------------------- 1 file changed, 1 insertion(+), 56 deletions(-) diff --git a/aio/content/guide/browser-support.md b/aio/content/guide/browser-support.md index 204c705a64..9ce694f1e9 100644 --- a/aio/content/guide/browser-support.md +++ b/aio/content/guide/browser-support.md @@ -91,7 +91,7 @@ If you are not using the CLI to create your projects, see [Polyfill instructions When you create a project with the `ng new` command, a `src/polyfills.ts` configuration file is created as part of your project folder. This file incorporates the mandatory and many of the optional polyfills as JavaScript `import` statements. -* The npm packages for the [_mandatory_ polyfills](#polyfill-libs) (such as `zone.js`) are installed automatically for you when you create your project with `ng new`, and their corresponding `import` statements are already enabled in the `src/polyfills.ts` configuration file. +* The npm packages for the mandatory polyfills (such as `zone.js`) are installed automatically for you when you create your project with `ng new`, and their corresponding `import` statements are already enabled in the `src/polyfills.ts` configuration file. * If you need an _optional_ polyfill, you must install its npm package, then uncomment or create the corresponding import statement in the `src/polyfills.ts` configuration file. @@ -118,25 +118,6 @@ If the polyfill you want is not already in `polyfills.ts` file, add the `import` {@a polyfill-libs} -### Mandatory polyfills -These are the polyfills required to run an Angular application on each supported browser: - - - - - - - - - - -
Browsers (Desktop & Mobile)Polyfills Required
- Chrome, Firefox, Edge,
- Safari, Android, IE 11 -
- ES2015 -
- ### Optional browser features to polyfill Some features of Angular may require additional polyfills. @@ -173,25 +154,12 @@ Some features of Angular may require additional polyfills. IE 11 - - - - Router when using hash-based routing - - - ES7/array - - - IE 11 - - ### Suggested polyfills The following polyfills are used to test the framework itself. They are a good starting point for an application. - - - - - - - - - - - -
@@ -204,29 +172,6 @@ The following polyfills are used to test the framework itself. They are a good s Size*
- ES7/array - - MIT - - 0.1KB -
- ES2015 - - MIT - - 27.4KB -
classList