Skip to main content
PESDK/Web

Add polyfills to Angular

This step is no longer required for Angular 11 or above.

If you want to support Internet Explorer 11 you have to include polyfills in your polyfills.ts before import 'zone.js/dist/zone';.

The easiest option would be to let core-js@3.x polyfill all stable ES and web standards:

polyfills.ts
// Polyfill only stable `core-js` features - ES and web standards:
import 'core-js/stable';

It is also possible to only polyfill the necessary features by installing react-app-polyfill:

polyfills.ts
// Polyfills Promise, fetch, Object.assign, Symbol, Set, Map
import 'react-app-polyfill/ie11';
// Loads core-js/stable, regenerator-runtime
import 'react-app-polyfill/stable';
import 'core-js/features/array/find';
import 'core-js/features/array/map';