Skip to content
/ degap Public

The ideal rollup-plugin-includepaths @ungap companion.

Notifications You must be signed in to change notification settings

ungap/degap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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'
  }
};

About

The ideal rollup-plugin-includepaths @ungap companion.

Resources

Stars

Watchers

Forks

Packages

No packages published