polyp

1.0.1 • Public • Published

polyp

Load polyfills as needed

Polyp polyfills all stable web platform features (anything in core-js/stable that's shipping in at least one browser) while only addding about 4 kB of feature detection code to your bundle. This works because Polyp dynamically imports polyfills only if an out-of-date environment is detected. Polyp loads polyfills in stages. Up-to-date browsers won't load polyfills at all, and browsers that are just a few versions behind won't need to load every polyfill.

Install

npm i polyp

Usage

import polyfillsReady from "polyp";
polyfillsReady.then(() => {
  // Use new web features :D
});

Package Sidebar

Install

npm i polyp

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

187 kB

Total Files

7

Last publish

Collaborators

  • easrng