{"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,"search_vec":"'6.0.0':15 'automat':32 'babel':3,13,43,46 'build':28,50 'cli':47 'compil':8 'develop':61 'direct':41 'ecosystem':30 'es6/es2015':9 'file':11 'generat':33 'gobbl':2,5,27,57,71 'gobble-babel':1 'integr':54 'javascript':10,70 'latest':18 'mainten':68 'minim':63 'mode':69 'option':40 'packag':22,65 'part':24 'pass':36 'pipelin':60 'plugin':6,52 'releas':20 'sourcemap':34 'specifi':39 'stabl':19 'standalon':45 'system':29 'tight':55 'tool':51 'transform':59 'unlik':44 'use':12 'user':38 'user-specifi':37 'version':14","created_at":"2026-04-25T11:21:10.351580+00:00","updated_at":"2026-04-25T11:21:10.351580+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/babel/gobble-babel","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/gobble-babel","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}