Loader and Bundler using the rollup for the gulp.
import gulp from 'gulp';
import rollup from 'gulp-rollup';
gulp.task('foo', () => {
rollup.src(...sources)
.bundle({ ...options })
.pipe(...) // some gulp plugins
.pipe(gulp.dest);
});
- Loading sources using globs
- Bundling with handy options
- Returning a vinyl
- Supporting the sourcemaps with
sourcemap.init({ loadMaps: true })