Wondering what’s next for npm?Check out our public roadmap! »

    @ungap/degap

    0.2.6 • Public • Published

    @ungap/degap

    The ideal rollup-plugin-includepaths @ungap companion.

    This module provides all native based fallbacks for any @ungap/... module that might not be needed for modern engines.

    import resolve from 'rollup-plugin-node-resolve';
    import includePaths from 'rollup-plugin-includepaths';
    
    export default {
      input: 'esm/index.js',
      plugins: [
        includePaths({
          include: {
            // will map @ungap/assign to a plain `Object.assign`
            '@ungap/assign': 'node_modules/@ungap/degap/assign.js'
          },
        }),
        resolve({module: true})
      ],
      output: {
        exports: 'named',
        file: 'degap.js',
        format: 'iife',
        name: 'degap'
      }
    };

    Install

    npm i @ungap/degap

    DownloadsWeekly Downloads

    14

    Version

    0.2.6

    License

    ISC

    Unpacked Size

    2.77 kB

    Total Files

    41

    Last publish

    Collaborators

    • avatar