Registry / devops / gulp-rollup-lightweight

gulp-rollup-lightweight

JSON →
library1.0.11jsnpmunverified

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-lightweight
INSTALL
IMPORT
SIG · GULP-ROLLUP-LIGHTW
G
gulp-rollup-lightweight
devopsjavascriptv1.0.11
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
const rollup = require('gulp-rollup-lightweight');
import rollup from 'gulp-rollup-lightweight';
CommonJS default export. ESM import may not work due to missing default export.
default
import rollup from 'gulp-rollup-lightweight';
ESM imports are supported if the consuming project uses ESM, but the package itself is CJS.
default
const rollup = require('gulp-rollup-lightweight').default;
const { rollup } = require('gulp-rollup-lightweight');
Only default export exists; named exports are not available.

Basic Gulp task using gulp-rollup-lightweight to bundle ES modules into UMD format.

const { dest } = require('gulp'); const rollup = require('gulp-rollup-lightweight'); const source = require('vinyl-source-stream'); function bundle() { return rollup({ input: './src/main.js', output: { format: 'umd' } }) .pipe(source('app.js')) .pipe(dest('./dist')); } exports.bundle = bundle;
Debug
Known issues
deprecatedrollup-plugin-node-resolve and rollup-plugin-commonjs are deprecated; use @rollup/plugin-node-resolve and @rollup/plugin-commonjs instead.
fix
Replace with npm install @rollup/plugin-node-resolve @rollup/plugin-commonjs and update imports.
affects: >=1.0.0
gotchaStream will emit error if Rollup build fails; ensure proper error handling in Gulp pipeline.
fix
Use gulp-plumber or try-catch in the task function.
affects: >=1.0.0
gotchaThe plugin does not include vinyl-source-stream; you must install it separately to create virtual files.
fix
npm install --save-dev vinyl-source-stream
affects: >=1.0.0
breakingVersion 1.0.0 dropped support for Rollup <1.0 and Gulp <4.
fix
Upgrade to Rollup 1.x+ and Gulp 4.x+.
affects: <1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'rollup'
Rollup is not installed or not provided in config.
fix
npm install rollup --save-dev OR pass custom rollup instance via options.rollup
TypeError: rollup is not a function
Importing a named export instead of default.
fix
Use const rollup = require('gulp-rollup-lightweight'); (no destructuring)
Error: 'input' is required
Missing 'input' option in the config object.
fix
Add input: './src/main.js' to the rollup() options.
Upgrade
Version history
1.0.11latest on npm
Audit
Dependencies
rollupoptionalPeer dependency for bundling; must be installed separately or provided via config
Agent activity
4 hits · last 30 days
node
4
Resources
gulp-rollup-lightweight — npm install gulp-rollup-lightweight · libregistry