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-babelVerified import paths — ran on the pinned version, not inferred.
This shows how to set up a Gobble file that compiles ES6 files from 'src' directory using Babel preset-es2015.
Ensure you install babel-preset-es2015 and babel-core version 6.x.
Use the correct transform name for your chosen plugin.
Add sourceMap: false to the options object if sourcemaps cause issues.
Run: npm install --save-dev babel-preset-es2015
Install gobble-babel as a dev dependency: npm install --save-dev gobble-babel