一覧へ戻る
ungap/degap(新しいタブで開きます)
主要言語: JavaScript
The ideal rollup-plugin-includepaths @ungap companion.
- star 数
- 3
- watcher 数
- 3
- fork 数
- 0
- issue 数
- 1
- 最終更新
- 2021/07/11
主要言語: JavaScript
The ideal rollup-plugin-includepaths @ungap companion.
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' } };