unpolyfill
Bare minimum react app polyfill in 9.6 KB
Usage
CDN Links
<script crossorigin src="https://unpkg.com/unpolyfill"></script>
Toolchains
-
install as a dependency
yarn add unpolyfill
-
import at the entry of application
import 'unpolyfill'
Features
Promise
(represents the eventual completion or failure of an asynchronous operation, and its resulting value)window.fetch
(provides an interface for fetching resources)Map
(holds key-value pairs and remembers the original insertion order of the keys)Set
(lets you store unique values of any type, whether primitive values or object references)window.requestAnimationFrame
(tells the browser that you wish to perform an animation and requests that the browser calls a specified function to update an animation before the next repaint)
Polyfill
- promise-polyfill for
Promise
- unfetch for
window.fetch
- core-js for
Map
andSet
- raf for
window.requestAnimationFrame