peter-neumann-dev / gulp-rollup-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-rollup-plugin

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.

Installation

npm i -D rollup gulp-rollup-plugin

Usage

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 }));
}

About

License:MIT License


Languages

Language:JavaScript 100.0%