unpolyfill
react-app-polyfill
replacement with IE9+ support.
Why
react-app-polyfill
doesn't support IE9. The fetch polyfill it used is whatwg-fetch
which is IE10+ only.
Usage
Import as ES6 module
Install unpolyfill
as a dependency.
npm install --save unpolyfill
Import unpolyfill
at the entry of application.
Import via script
Put this line before bundle.
Features
Official
Partially adapted from react-app-polyfill readme
Promise
(forasync
/await
support)window.fetch
(a Promise-based way to make web requests in the browser)Object.assign
(a helper required for Object Spread, i.e.{ ...a, ...b }
)Symbol
(a built-in object used byfor...of
syntax and friends)Array.from
(a built-in static method used by array spread, i.e.[...arr]
)Map
Set
requestAnimationFrame
Bonus
URLSearchParams
Polyfill
- promise-polyfill for
Promise
- unfetch for
window.fetch
- object-assign for
Object.assign
- core-js for
Symbol
Array.from
Map
Set
URLSearchParams
- raf for
requestAnimationFrame