{"id":19261,"library":"babel-preset-buildo","title":"buildo Babel Preset","description":"A Babel preset that groups plugins and presets commonly used at buildo, including support for React and Node environments. Version 0.1.1 appears to be stable with no active development. It wraps babel-preset-env and conditionally includes React plugins based on the 'env' option. Compared to other presets like babel-preset-react-app, it is minimal and organization-specific, not recommended for general use.","status":"active","version":"0.1.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install babel-preset-buildo","lang":"bash","label":"npm"},{"cmd":"yarn add babel-preset-buildo","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-preset-buildo","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency for environment-based transpilation","package":"babel-preset-env","optional":false},{"reason":"Required when env is set to 'react'","package":"babel-preset-react","optional":true},{"reason":"Plugin for class properties transform","package":"babel-plugin-transform-class-properties","optional":false},{"reason":"Plugin for object rest/spread transform","package":"babel-plugin-transform-object-rest-spread","optional":false}],"imports":[{"note":"Used as a Babel preset in configuration files, not imported in code.","wrong":"require('babel-preset-buildo') in babel.config.js","symbol":"default","correct":"In .babelrc: { \"presets\": [\"buildo\"] }"},{"note":"Options are passed as an array with preset name first, then options object.","wrong":"{ \"presets\": [\"buildo\", { \"env\": \"react\" }] }","symbol":"with options","correct":"{ \"presets\": [[\"buildo\", { \"env\": \"react\" }]] }"},{"note":"The preset's env option overrides automatic detection from BABEL_ENV.","wrong":"Setting env option in preset options while also using BABEL_ENV/react-preset separately","symbol":"environment detection","correct":"Set BABEL_ENV or NODE_ENV to 'react' to automatically use react preset"}],"quickstart":{"code":"// Install\nnpm install --save-dev babel-preset-buildo\n\n// .babelrc\n{\n  \"presets\": [\n    [\"buildo\", {\n      \"env\": \"react\",\n      \"targets\": {\n        \"chrome\": 52,\n        \"node\": 4\n      }\n    }]\n  ]\n}\n\n// Run Babel\nnpx babel src --out-dir lib","lang":"javascript","description":"Basic setup of babel-preset-buildo with React env and custom browser targets."},"warnings":[{"fix":"Use @babel/preset-env directly or migrate to Babel 7+.","message":"Depends on babel-preset-env which has been superseded by @babel/preset-env since Babel 7.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure babel-preset-env is installed: npm install --save-dev babel-preset-env","message":"The package does not specify exact peer dependencies in older versions; install may fail without manually installing babel-preset-env.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use exactly 'react' or 'node' for the env option.","message":"The env option is case-sensitive; 'react' and 'node' are the only supported values. Unknown values may silently default to 'node'.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use @babel/preset-env with appropriate corejs version instead.","message":"The transform-class-properties and transform-object-rest-spread plugins are included by default but are now part of @babel/preset-env's shipped proposals.","severity":"deprecated","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install --save-dev babel-preset-env","cause":"Missing peer dependency babel-preset-env.","error":"Error: Cannot find module 'babel-preset-env'"},{"fix":"Use Babel 6 or migrate to @babel/preset-env.","cause":"Using Babel 7+ which expects module formats that export functions, but babel-preset-buildo may export an object.","error":"Error: Plugin/Preset files are not allowed to export objects, only functions."},{"fix":"Add 'useBuiltIns': 'usage' option or import '@babel/polyfill'.","cause":"Using async/generator functions without including babel-polyfill or @babel/polyfill.","error":"ReferenceError: regeneratorRuntime is not defined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}