A thin lightweight Gulp plugin that wraps Rollup's JavaScript API into a Readable Stream, compatible with Gulp 4.x and Rollup 1.x. Version 1.0.11 is the latest stable release (no recent maintenance). It differs from alternatives like gulp-rollup by being simpler and supporting custom Rollup instances. Suitable for building bundles with ES modules and CommonJS via plugins.
npm install gulp-rollup-lightweightVerified import paths — ran on the pinned version, not inferred.
Basic Gulp task using gulp-rollup-lightweight to bundle ES modules into UMD format.
Replace with npm install @rollup/plugin-node-resolve @rollup/plugin-commonjs and update imports.
Use gulp-plumber or try-catch in the task function.
npm install --save-dev vinyl-source-stream
Upgrade to Rollup 1.x+ and Gulp 4.x+.
npm install rollup --save-dev OR pass custom rollup instance via options.rollup
Use const rollup = require('gulp-rollup-lightweight'); (no destructuring)Add input: './src/main.js' to the rollup() options.