rg-rollup

raw JSON →
0.1.8 verified Mon Apr 27 auth: no javascript deprecated

A Gulp plugin for Rollup that provides clean, minified builds via simple configuration. Current stable version is 0.1.8, with low release cadence (last update 2018). It wraps Rollup and common plugins (e.g., babel, uglify) for Gulp-based workflows. Differentiator: minimal configuration compared to manual Rollup setup, but outdated and not actively maintained.

error TypeError: rgRollup is not a function
cause Importing { rgRollup } instead of default import.
fix
Use: import rgRollup from 'rg-rollup';
error Error: Cannot find module 'rg-rollup'
cause Package not installed or misspelled name.
fix
npm install rg-rollup --save-dev
deprecated Package is no longer maintained. Last update was in 2018.
fix Migrate to modern alternatives: use rollup directly or @rollup/plugin-gulp.
breaking rg-rollup is ESM-only. Cannot be required() in CommonJS modules without dynamic import.
fix Use import syntax; if on Node <13.2, use esm package or upgrade Node.
gotcha Plugin configuration expects nested object under 'plugins' key, not array of Rollup plugins.
fix Use format shown in quickstart, not Rollup's official plugin array format.
npm install rg-rollup
yarn add rg-rollup
pnpm add rg-rollup

Shows a basic Gulp task using rg-rollup to bundle and minify a JavaScript file, assuming ESM imports.

import gulp from 'gulp';
import rgRollup from 'rg-rollup';

gulp.task('build', function() {
  return gulp.src('src/index.js')
    .pipe(rgRollup({
      format: 'iife',
      plugins: {
        babel: {
          presets: ['@babel/preset-env']
        },
        uglify: {}
      }
    }))
    .pipe(gulp.dest('dist'));
});