Registry / devops / gulp-rollup-plugin

gulp-rollup-plugin

JSON →
library2.0.0jsnpmunverified

Gulp plugin wrapping Rollup for ES module bundling, upgraded to ESM and Gulp v4. Latest version: 2.0.0. Provides a simple pipeable interface to integrate Rollup into Gulp workflows, supporting sourcemaps and custom Rollup config. Differentiates from gulp-better-rollup by being ESM-only and compatible with Rollup 3.x. Release cadence: low.

npm install gulp-rollup-plugin
INSTALL
IMPORT
SIG · GULP-ROLLUP-PLUGIN
G
gulp-rollup-plugin
devopsjavascriptv2.0.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-best-rollup'
const rollup = require('gulp-best-rollup')
ESM-only; require() not supported.
default
import rollup from 'gulp-best-rollup'
import * as rollup from 'gulp-best-rollup'
Default export is a function, not a namespace.
default
import rollup from 'gulp-best-rollup'
import { rollup } from 'gulp-best-rollup'
No named export; use default import.

Transpile and bundle a JavaScript file using Rollup via Gulp, with sourcemap support.

import gulp from 'gulp'; import sourcemaps from 'gulp-sourcemaps'; import rollup from 'gulp-best-rollup'; export function js() { return gulp.src('./src/index.js') .pipe(sourcemaps.init()) .pipe(rollup({ plugins: [] }, { file: 'index.js', format: 'esm' })) .pipe(sourcemaps.write('')) .pipe(gulp.dest('dist')); }
Debug
Known issues
breakingPackage is ESM-only; does not support CommonJS require().
fix
Use import syntax or downgrade to a CJS-compatible alternative like gulp-better-rollup.
affects: >=2.0.0
breakingRequires Rollup 3.x as peer dependency; incompatible with Rollup 2.x or 4.x.
fix
Install rollup@^3.1.0 alongside this package.
affects: >=2.0.0
breakingRequires Node.js >= 14 and Gulp v4; not compatible with older versions.
fix
Upgrade Node.js to >=14 and Gulp to v4.
affects: >=2.0.0
gotchaPackage name does not match npm registry name. npm name is 'gulp-best-rollup', not 'gulp-rollup-plugin'.
fix
Install as npm i -D gulp-best-rollup.
affects: >=0.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Using CommonJS require() to import an ESM-only package.
fix
Switch to import syntax and ensure your project is configured for ESM (e.g., 'type': 'module' in package.json).
Cannot find module 'rollup'
Missing peer dependency 'rollup'.
fix
Run npm i -D rollup@^3.1.0.
Gulp version mismatch: gulp is not a function or pipe is not a function
Using Gulp v3 with this plugin.
fix
Upgrade Gulp to v4 (gulp@^4.0.0).
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
rolluprequiredpeer dependency; required for bundling
Agent activity
4 hits · last 30 days
node
4
Resources
gulp-rollup-plugin — npm install gulp-rollup-plugin · libregistry