@ungap/degap

v0.2.8
The ideal rollup-plugin-includepaths @ungap companion.
no polyfill ungap native map

@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'
  }
};
npm i @ungap/degap

Metadata

  • ISC
  • Whatever
  • Andrea Giammarchi
  • released 7/11/2021

Downloads

Maintainers