angular-polyfills

1.0.1 • Public • Published

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

Install

npm install --save angular-polyfills

Why?

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.

FAQs

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 / rewrite_polyfills: 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.

Package Sidebar

Install

npm i angular-polyfills

Weekly Downloads

2,931

Version

1.0.1

License

ISC

Last publish

Collaborators

  • lucascono