Registry / devops / gobble-babel

gobble-babel

JSON →
library6.0.0jsnpmunverified

A Gobble plugin to compile ES6/ES2015+ JavaScript files using Babel. Version 6.0.0 is the latest stable release; this package is part of the Gobble build system ecosystem. It automatically generates sourcemaps and passes user-specified options directly to Babel. Unlike standalone Babel CLI or other build tool plugins, it integrates tightly with Gobble's transform pipeline. Development is minimal; the package is in maintenance mode.

npm install gobble-babel
INSTALL
IMPORT
SIG · GOBBLE-BABEL
G
gobble-babel
devopsjavascriptv6.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 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default transform function
import gobble from 'gobble'; gobble('src').transform('babel', options);
const gobble = require('gobble'); module.exports = gobble('src').transform('babel', options);
If using ESM, import gobble; the transform is called with the string 'babel'.

This shows how to set up a Gobble file that compiles ES6 files from 'src' directory using Babel preset-es2015.

// gobblefile.js const gobble = require('gobble'); module.exports = gobble('src').transform('babel', { presets: ['es2015'] });
Debug
Known issues
breakinggobble-babel v6 is compatible with Babel 6, but not with Babel 5 or earlier.
fix
Ensure you install babel-preset-es2015 and babel-core version 6.x.
affects: >=6.0.0
deprecatedThe 'babel' string used in gobble's transform method is specific to this plugin. If you switch to another plugin, the transform name changes.
fix
Use the correct transform name for your chosen plugin.
affects: >=1.0.0
gotchaSourcemaps are enabled by default; to disable them, pass `sourceMap: false` in options.
fix
Add sourceMap: false to the options object if sourcemaps cause issues.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'babel-preset-es2015'
Missing required Babel preset for ES2015 compilation.
fix
Run: npm install --save-dev babel-preset-es2015
TypeError: gobble(...).transform is not a function
gobble-babel not installed or not loaded; the 'babel' transform is not registered.
fix
Install gobble-babel as a dev dependency: npm install --save-dev gobble-babel
Upgrade
Version history
6.0.0latest on npm
Audit
Dependencies
gobblerequiredpeer dependency; gobble-babel is a plugin for the Gobble build system
babel-corerequiredpeer dependency; provides the Babel compiler
Agent activity
4 hits · last 30 days
node
4
Resources
gobble-babel — npm install gobble-babel · libregistry