To install the babel-polyfill library with JavaScript, we run npm install
.
For instance, we run
npm install --save-dev @babel/core @babel/cli @babel/preset-env
npm install --save @babel/polyfill
to install the @babel/polyfill
package along with the other required Babel packages.