user-agent-based polyfill combinator
This library is merely the "logic" and does not handle any HTTP serving. It essentially does the following:
<family> <major>.<minor>.<version>and creates polyfill bundles based on these variables.
npm install polyfills
var polyfills = require'polyfills'var polyfill = polyfillsoptionsvar js = polyfill<useragent>
Wait until the polyfills are loaded before using this library.
Reload all the polyfills from the source.
The options are:
include- which polyfills to include. This is an inclusive list. The names are included in polyfills/db.
exclude- conversely, you can exclude specific polyfills.
Bundle a polyfill for a useragent.
appusevar js = polyfillreqheaders'user-agent'restype'js'ressendjs