The way to keep IE working with modern functionality
- @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
- core-js ^3.9.1
- regenerator-runtime ^0.13.7
- whatwg-fetch ^3.6.2
npm i ie-polyfillimport "ie-polyfill"
//or
require("ie-polyfill"){
test: /\.(js)$/,
exclude: /ie-polyfill/,
use: {
loader: "babel-loader",
options: {}
}
}<script src="path-to/ie-polyfill/dist/ie-polyfill.js"></script>- 1.0.2 added fetch polyfill