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
muslnode 18–223 runs
build_error
glibcnode 18–223 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
transform
✓ const gobble = require('gobble'); module.exports = gobble('src').transform('rollup', options)
✗ import { transform } from 'gobble-rollup'
Not a direct import; used as a gobble transform plugin via string reference 'rollup'.
plugin
✓ const gobble = require('gobble'); const rollupPlugin = require('gobble-rollup'); goble('src').transform(rollupPlugin, options)
✗ import rollupPlugin from 'gobble-rollup'
ESM imports might be unsupported; common pattern is require with string name.
gobble-rollup
✓ npm install -D gobble-rollup
✗ npm install gobble-rollup --save
Should be devDependency since it's a build tool plugin.
Shows how to use gobble-rollup to bundle app.js from 'src' directory into an IIFE bundle.
const gobble = require('gobble');
module.exports = gobble('src').transform('rollup', {
entry: 'app.js',
dest: 'bundle.js',
format: 'iife',
moduleName: 'MyApp'
});
Errors
Common errors & fixes
Error: Cannot find module 'gobble'
gobble not installed
Error: Cannot find module 'rollup'
rollup not installed
TypeError: gobble is not a function
gobble not required correctly
fixconst gobble = require('gobble'); Audit
Dependencies
rolluprequiredpeer dependency for Rollup functionality
gobblerequiredpeer dependency; requires gobble build system