Gulp plugin for Rollup that processes multiple input files individually, each with its own Rollup bundle. Current stable version is 4.0.1 (Rollup v2, released 2021). Release cadence is low; the plugin has been stable with occasional updates for Rollup major versions. Key differentiator: unlike other gulp-rollup plugins that combine all files into a single bundle, this plugin preserves the file-per-bundle pattern useful for static sites or multi-page apps. Supports Rollup cache, external modules, and custom rollup instance.
npm install gulp-rollup-eachVerified import paths — ran on the pinned version, not inferred.
Basic Gulp task that bundles each JS file under src with Rollup in IIFE format, excluding files prefixed with underscore.
Update Rollup to v1.x for v3.x, or v2.x for v4.x.
Remove `isCache` and configure cache via Rollup's inputOptions.cache.
Do not specify `input` in inputOptions; use gulp.src() to define entry files.
Always pass both arguments or use a function for the second argument to avoid ambiguity.
Use `import rollupEach from 'gulp-rollup-each'` or `const rollupEach = require('gulp-rollup-each')`.Remove `input` from inputOptions; the input comes from gulp.src().
Use Rollup's `cache` property: `cache: true` or a cache object. Remove `isCache`.