README
yuzu-polyfills
legacy environments support polyfills
The yuzu-polyfills
package provides support for Yuzu in legacy environments like Internet Explorer 11 and Safari 9.
Included Polyfills
- core-js 3
Array.from()
Map
Object.assign()
Object.entries()
Promise
String.prototype.includes()
String.prototype.startsWith()
Number.isNaN()
- element-closest
Element.closest()
ChildNode.remove()
Number.MAX_SAFE_INTEGER
Installation
As NPM Package
npm install yuzu-polyfills --save
# or
yarn add yuzu-polyfills
<script>
CDN Delivered Add the following script tag before including yuzu
<script src="https://unpkg.com/yuzu-polyfills"></script>
Usage
If you are using a package bundler like Webpack, import this module at the very top of your entry point file:
import 'yuzu-polyfills';