gobble-rollup
raw JSON → 0.40.0 verified Mon Apr 27 auth: no javascript abandoned
A gobble plugin to bundle ES6 modules using Rollup. Version 0.40.0 is the latest stable release. Abandoned since 2017; no updates for over 8 years, last commit on 2015-11-08. No longer maintained. Alternatives: use Rollup directly with modern build tools.
Common errors
error Error: Cannot find module 'gobble' ↓
cause gobble not installed
fix
npm install gobble
error Error: Cannot find module 'rollup' ↓
cause rollup not installed
fix
npm install rollup
error TypeError: gobble is not a function ↓
cause gobble not required correctly
fix
const gobble = require('gobble');
Warnings
deprecated Package is abandoned; no updates since 2015. ↓
fix Use Rollup directly or modern bundler like Vite.
gotcha Requires gobble build system; cannot be used standalone. ↓
fix Install gobble as a parent dependency.
gotcha Rollup version compatibility unknown; may break with modern Rollup versions. ↓
fix Pin Rollup to version compatible with this plugin's peer range.
Install
npm install gobble-rollup yarn add gobble-rollup pnpm add gobble-rollup Imports
- transform wrong
import { transform } from 'gobble-rollup'correctconst gobble = require('gobble'); module.exports = gobble('src').transform('rollup', options) - plugin wrong
import rollupPlugin from 'gobble-rollup'correctconst gobble = require('gobble'); const rollupPlugin = require('gobble-rollup'); goble('src').transform(rollupPlugin, options) - gobble-rollup wrong
npm install gobble-rollup --savecorrectnpm install -D gobble-rollup
Quickstart
const gobble = require('gobble');
module.exports = gobble('src').transform('rollup', {
entry: 'app.js',
dest: 'bundle.js',
format: 'iife',
moduleName: 'MyApp'
});