Skip to content

easrng/polyp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
});

About

load polyfills as-needed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published