{"id":20069,"library":"gobble-babel","title":"gobble-babel","description":"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.","status":"maintenance","version":"6.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/babel/gobble-babel","tags":["javascript","gobble"],"install":[{"cmd":"npm install gobble-babel","lang":"bash","label":"npm"},{"cmd":"yarn add gobble-babel","lang":"bash","label":"yarn"},{"cmd":"pnpm add gobble-babel","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; gobble-babel is a plugin for the Gobble build system","package":"gobble","optional":false},{"reason":"peer dependency; provides the Babel compiler","package":"babel-core","optional":false}],"imports":[{"note":"If using ESM, import gobble; the transform is called with the string 'babel'.","wrong":"const gobble = require('gobble'); module.exports = gobble('src').transform('babel', options);","symbol":"default transform function","correct":"import gobble from 'gobble'; gobble('src').transform('babel', options);"}],"quickstart":{"code":"// gobblefile.js\nconst gobble = require('gobble');\nmodule.exports = gobble('src').transform('babel', {\n  presets: ['es2015']\n});","lang":"javascript","description":"This shows how to set up a Gobble file that compiles ES6 files from 'src' directory using Babel preset-es2015."},"warnings":[{"fix":"Ensure you install babel-preset-es2015 and babel-core version 6.x.","message":"gobble-babel v6 is compatible with Babel 6, but not with Babel 5 or earlier.","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Use the correct transform name for your chosen plugin.","message":"The 'babel' string used in gobble's transform method is specific to this plugin. If you switch to another plugin, the transform name changes.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Add sourceMap: false to the options object if sourcemaps cause issues.","message":"Sourcemaps are enabled by default; to disable them, pass `sourceMap: false` in options.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run: npm install --save-dev babel-preset-es2015","cause":"Missing required Babel preset for ES2015 compilation.","error":"Error: Cannot find module 'babel-preset-es2015'"},{"fix":"Install gobble-babel as a dev dependency: npm install --save-dev gobble-babel","cause":"gobble-babel not installed or not loaded; the 'babel' transform is not registered.","error":"TypeError: gobble(...).transform is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}