gobble-rollup-babel
raw JSON → 0.6.1 verified Mon Apr 27 auth: no javascript maintenance
A gobble plugin for bundling ES6 modules using Rollup and Babel. Current stable version is 0.6.1. Typically used in older JavaScript projects that combine the gobble build system with Rollup for module bundling and Babel for transpilation. This plugin allows configuration of Rollup options and Babel presets/plugins. It is part of the gobble ecosystem and is not actively maintained, with limited documentation and community support. Consider using modern alternatives like Vite or webpack.
Common errors
error Cannot find module 'gobble-rollup-babel' ↓
cause Package not installed or not in node_modules
fix
Run 'npm install gobble-rollup-babel' and ensure it is in package.json dependencies.
error Error: Cannot find module 'babel-core' ↓
cause Missing required peer dependency babel-core
fix
Run 'npm install babel-core' to install the peer dependency.
Warnings
deprecated The package is no longer actively maintained and may have compatibility issues with modern versions of Rollup or Babel. ↓
fix Consider migrating to modern alternatives like Vite, webpack, or rollup directly.
gotcha The 'babel' configuration expects an object with 'presets' and 'plugins' arrays; using a different structure will cause failures. ↓
fix Ensure babel config is an object with presets and plugins arrays as shown in the documentation.
breaking Breaking change in v0.6.0: Plugin renamed from 'rollup-babel' to 'rollup-babel' (same) but API changed; configuration moved from top-level to nested under 'babel' key. ↓
fix Use the new API: pass babel options as { babel: { presets: ['es2015'] } } instead of flat presets.
Install
npm install gobble-rollup-babel yarn add gobble-rollup-babel pnpm add gobble-rollup-babel Imports
- gobbleRollupBabel wrong
import gobbleRollupBabel from 'gobble-rollup-babel';correctconst gobbleRollupBabel = require('gobble-rollup-babel');
Quickstart
const gobble = require('gobble');
const gobbleRollupBabel = require('gobble-rollup-babel');
module.exports = gobble('src')
.transform('rollup-babel', {
entry: 'main.js',
dest: 'bundle.js',
format: 'iife',
moduleName: 'MyApp',
plugins: [],
external: [],
globals: {},
sourceMap: true,
babel: {
presets: ['es2015'],
plugins: ['transform-object-rest-spread']
}
});