Polyfill service middleware for koa.
npm install koa-polyfill-service --saveconst polyfill = require('koa-polyfill-service')
app.use(polyfill())The options for the middleware, other than those passed directly to getPolyfillString, are:
maxAge- the max age for the polyfill's cache control, defaulting to2 weekspath- route to serve lib, defaulting to/polyfill.jsfeatures- the same as getPolyfillString option, but defaulting to{default: {}}.
Disclaimer: 🙈 shameless copy of koa Polyfills, but using Polyfill service.