yuzu-polyfills
v2.0.1
Published
Older browsers support for Yuzu
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()MapObject.assign()Object.entries()PromiseString.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-polyfillsCDN Delivered <script>
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';