Back to results
tborychowski/gulp-rollup-plugin(opens in a new tab)
Language: JavaScript
- stars
- 2
- watchers
- 1
- forks
- 1
- open issues
- 0
- Last updated
- 11/20/2022
Language: JavaScript
Borrowed from gulp-better-rollup and upgraded to an ES module and Gulp v4.
Disclaimer: This package works for me. If it doesn't work for you, feel free to fork it and make it work.
npm i -D rollup gulp-rollup-plugin
import rollup from 'gulp-rollup-plugin'; export function js () { return src('./src/index.js', { sourcemaps: true }) .pipe(rollup({ plugins: [], }, { file: 'index.js', format: 'esm', })) .pipe(dest('dist', { sourcemaps: true })); }