I'm using https://github.com/zloirock/core-js as an ES6 polyfill for TypeScript 1.5.0 I got from npm
I'm curious what's the difference between:
// Default
require('core-js');
And:
// Shim only
require('core-js/shim');
Another question, what are the other alternatives for ES6 polyfill?
The shim.js
polyfills all standard ECMAScript methods.
The index.js
polyfills non-standard methods in addition.
See the required sub modules in the source code:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With