1.0.1 • Published 5 years ago
require-polyfills v1.0.1
Require Polyfills
Collection of polyfils that load automatically using require-bundle-js by detecting what is missing in the browser.
Installation
Require Polyfills also need Require Bundle JS which needs to be loaded first. Download the scripts from dist folder and include them in your HTML preferably inside the document <head> element.
<script type="text/javascript" src="path/to/dist/require-bundle.min.js"></script>
<script type="text/javascript" src="path/to/dist/require-polyfills.min.js"></script>The required polyfills for the current browser will be loaded automatically as Require Polyfills test if the browser supports the feature for each polyfill.
NPM
Require Polyfills is also available on NPM:
$ npm install require-polyfillsSupported Polyfills
bindclassListclosestCustomEventsmatchesmatchMediaObjectEntriesPromiserequestAnimationFrame
Contributing to Development
This isn't a large project by any means, but you are definitely welcome to contribute.
Development environment
Clone the repo and run npm install:
$ cd path/to/require-polyfills
$ npm installRun the build command:
$ gulp buildBuild on file save:
$ gulp
$ gulp watchLicense
Licensed under MIT.