The Angular CLI provides support for polyfills officially. When you create a new project with the ng new command, a src/polyfills.ts
configuration file is created as part of your project folder. This file includes the mandatory and many of the optional polyfills as JavaScript import statements. Let’s categorize the polyfills,
bash npm install --save web-animations-js
and create import statement in polyfill file. javascript import 'web-animations-js';
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.