All polyfills suggested by the Angular team

Downloads in past


1.0.16 years ago6 years agoMinified + gzip package size for angular-polyfills in KB


<img height="250" width="250" src="">

Polyfills for Angular
All polyfills suggested by the Angular team

Package includes:

| Polyfill | License | File | |-------------------------------------------------------------------------------------|-----------------------|-----------------------------------------------------------------------------------------------------------| | Blob | MIT | dist/blob.js | | classList | Public domain | dist/classlist.js | | FormData | MIT | dist/formdata.js | | Intl | MIT / Unicode license | dist/intl.js | | ES6 | MIT | dist/shim.js | | Typed Array | MIT | dist/typedarray.js | | Web Animations | Apache | dist/webanimations.js |
In addition, a version concatenated with all polyfills is available in dist/all.js


npm install --save angular-polyfills


Some of these polyfills are not published in NPM, making it difficult to install and use them. Issues have even been opened in the original repositories requesting that they be published, but their authors have ignored it. And for those who have been published, this is a simple and faster option to get them all.


Have the polyfills code been modified?

Absolutely not. They have been extracted from their original repositories and only minified with google-closure-compiler (charset: utf-8 / optimization level: simple / rewritepolyfills: false).

Why are there random line feeds in compiled scripts?

The Closure Compiler intentionally adds line breaks every 500 characters or so. Firewalls and proxies sometimes corrupt or ignore large JavaScript files with very long lines. Adding line breaks every 500 characters prevents this problem. Removing the line breaks has no effect on a script's semantics. The impact on code size is small, and the Compiler optimizes line break placement so that the code size penalty is even smaller when files are gzipped.