Registry / devops / gulp-rollup-stream

gulp-rollup-stream

JSON →
library0.2.0jsnpmunverified

Gulp plugin that integrates Rollup bundling into Gulp pipelines, version 0.2.0 (last released ~2016). It allows using Gulp's streaming file system with Rollup's module bundling, supporting options like cache, external modules, plugins, and output formats (esm, cjs, iife, umd). The package is extremely minimal and does not handle sourcemaps or modern Rollup APIs. It is not actively maintained and lacks support for newer Rollup versions. Compared to alternatives like gulp-better-rollup, this package has a simpler API but fewer features.

npm install gulp-rollup-stream
INSTALL
IMPORT
SIG · GULP-ROLLUP-STREAM
G
gulp-rollup-stream
devopsjavascriptv0.2.0
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
import rollup from 'gulp-rollup-stream'
import { rollup } from 'gulp-rollup-stream'
The package exports a single function as default; named import will result in undefined.
CommonJS require
const rollup = require('gulp-rollup-stream')
const { rollup } = require('gulp-rollup-stream')
Destructuring require() fails because the export is a function, not an object.
TypeScript
import rollup from 'gulp-rollup-stream'
import * as rollup from 'gulp-rollup-stream'
No type definitions shipped; use @types/gulp-rollup-stream if available, or declare module.

Basic Gulp task that bundles src/main.js into dist/main.js using Rollup with CommonJS output format.

const gulp = require('gulp'); const rollup = require('gulp-rollup-stream'); const { pipeline } = require('stream'); gulp.task('rollup', () => { return gulp.src('src/main.js') .pipe(rollup({ format: 'cjs', cache: true })) .pipe(gulp.dest('dist')); });
Debug
Known issues
deprecatedPackage uses outdated Rollup API (pre-1.0). Does not support Rollup 1.x+ or ES modules in input.
fix
Upgrade to a maintained plugin like gulp-better-rollup or gulp-rollup.
affects: >=0.2.0
breakingSourcemaps are not supported. Output files will not have sourcemaps even if Rollup produces them.
fix
Use a different plugin that supports sourcemaps, or add gulp-sourcemaps with careful handling.
affects: >=0.0.0
gotchaThe 'cache' option expects a Rollup bundle object, not a boolean. Setting cache: true will silently fail.
fix
Pass a valid cache object obtained from a previous bundle via the bundleCb callback.
affects: >=0.0.0
deprecatedNo activity or maintenance since 2016. Known incompatibilities with Node.js versions >10.
fix
Switch to an actively maintained plugin.
affects: >=0.2.0
Errors
Common errors & fixes
Cannot find module 'gulp-rollup-stream'
Package not installed or not in node_modules.
fix
Run 'npm install gulp-rollup-stream --save-dev' (note: deprecated, consider alternatives).
TypeError: rollup is not a function
Incorrect import: likely using named import when default import is needed.
fix
Use 'import rollup from "gulp-rollup-stream"' or 'const rollup = require("gulp-rollup-stream")'.
Error: Could not load ... (imported by ...): The plugin is not compatible with Rollup 1.x+
Using a newer version of Rollup (>=1.0) which changed the plugin API.
fix
Downgrade Rollup to 0.x or switch to a plugin that supports modern Rollup.
Upgrade
Version history
0.2.0latest on npm
Audit
Dependencies
rolluprequiredPeer dependency - this plugin wraps Rollup's bundle generation
gulpoptionalGulp plugin, requires Gulp environment
Agent activity
4 hits · last 30 days
node
4
Resources
gulp-rollup-stream — npm install gulp-rollup-stream · libregistry