Neoclassical Programming Multitude
    Have ideas to improve npm?Join in the discussion! »

    core-js-builder

    3.15.1 • Public • Published

    For some cases could be useful to exclude some core-js features or generate a polyfill for target engines. This API helps conditionally include or exclude certain parts of core-js, use browserslist queries from core-js-compat package.

    require('core-js-builder')({
      modules: ['es', 'esnext.reflect', 'web'],         // modules / namespaces, by default - all `core-js` modules
      exclude: ['es.math', 'es.number.constructor'],    // a blacklist of modules / namespaces, by default - empty list
      targets: '> 0.5%',                                // optional browserslist query
      filename: './my-core-js-bundle.js',               // optional target filename, if it's missed a file will not be created
    }).then(code => {                                   // code of result polyfill
      // ...
    }).catch(error => {
      // ...
    });

    Keywords

    none

    Install

    npm i core-js-builder

    DownloadsWeekly Downloads

    4,154

    Version

    3.15.1

    License

    MIT

    Unpacked Size

    5.32 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar
    • avatar