ie-polyfill
The way to keep IE working with modern functionality
Why this?
- @babel/polyfill has been deprecated since Babel 7.4.0
- load latest core-js and regenerator-runtime without build-ins
- use other polyfill in IE like fetch
Versions
- core-js ^3.9.1
- regenerator-runtime ^0.13.7
- whatwg-fetch ^3.6.2
Install
npm i ie-polyfillUsage
import "ie-polyfill"
//or
require("ie-polyfill")Note: Please exclude ie-polyfill from webpack babel-loader config
{
test: /\.(js)$/,
exclude: /ie-polyfill/,
use: {
loader: "babel-loader",
options: {}
}
}In Browser
<script src="path-to/ie-polyfill/dist/ie-polyfill.js"></script>Changelogs
- 1.0.2 added fetch polyfill