{"id":21418,"library":"gulp-rollup-stream","title":"gulp-rollup-stream","description":"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.","status":"deprecated","version":"0.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/renanhangai/gulp-rollup-stream","tags":["javascript","gulp","rollup"],"install":[{"cmd":"npm install gulp-rollup-stream","lang":"bash","label":"npm"},{"cmd":"yarn add gulp-rollup-stream","lang":"bash","label":"yarn"},{"cmd":"pnpm add gulp-rollup-stream","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency - this plugin wraps Rollup's bundle generation","package":"rollup","optional":false},{"reason":"Gulp plugin, requires Gulp environment","package":"gulp","optional":true}],"imports":[{"note":"The package exports a single function as default; named import will result in undefined.","wrong":"import { rollup } from 'gulp-rollup-stream'","symbol":"default","correct":"import rollup from 'gulp-rollup-stream'"},{"note":"Destructuring require() fails because the export is a function, not an object.","wrong":"const { rollup } = require('gulp-rollup-stream')","symbol":"CommonJS require","correct":"const rollup = require('gulp-rollup-stream')"},{"note":"No type definitions shipped; use @types/gulp-rollup-stream if available, or declare module.","wrong":"import * as rollup from 'gulp-rollup-stream'","symbol":"TypeScript","correct":"import rollup from 'gulp-rollup-stream'"}],"quickstart":{"code":"const gulp = require('gulp');\nconst rollup = require('gulp-rollup-stream');\nconst { pipeline } = require('stream');\n\ngulp.task('rollup', () => {\n  return gulp.src('src/main.js')\n    .pipe(rollup({\n      format: 'cjs',\n      cache: true\n    }))\n    .pipe(gulp.dest('dist'));\n});","lang":"javascript","description":"Basic Gulp task that bundles src/main.js into dist/main.js using Rollup with CommonJS output format."},"warnings":[{"fix":"Upgrade to a maintained plugin like gulp-better-rollup or gulp-rollup.","message":"Package uses outdated Rollup API (pre-1.0). Does not support Rollup 1.x+ or ES modules in input.","severity":"deprecated","affected_versions":">=0.2.0"},{"fix":"Use a different plugin that supports sourcemaps, or add gulp-sourcemaps with careful handling.","message":"Sourcemaps are not supported. Output files will not have sourcemaps even if Rollup produces them.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Pass a valid cache object obtained from a previous bundle via the bundleCb callback.","message":"The 'cache' option expects a Rollup bundle object, not a boolean. Setting cache: true will silently fail.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Switch to an actively maintained plugin.","message":"No activity or maintenance since 2016. Known incompatibilities with Node.js versions >10.","severity":"deprecated","affected_versions":">=0.2.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install gulp-rollup-stream --save-dev' (note: deprecated, consider alternatives).","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'gulp-rollup-stream'"},{"fix":"Use 'import rollup from \"gulp-rollup-stream\"' or 'const rollup = require(\"gulp-rollup-stream\")'.","cause":"Incorrect import: likely using named import when default import is needed.","error":"TypeError: rollup is not a function"},{"fix":"Downgrade Rollup to 0.x or switch to a plugin that supports modern Rollup.","cause":"Using a newer version of Rollup (>=1.0) which changed the plugin API.","error":"Error: Could not load ... (imported by ...): The plugin is not compatible with Rollup 1.x+"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}