Registry / devops / babel-preset-buildo

babel-preset-buildo

JSON →
library0.1.1jsnpmunverified

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.

npm install babel-preset-buildo
INSTALL
IMPORT
SIG · BABEL-PRESET-BUILD
B
babel-preset-buildo
devopsjavascriptv0.1.1
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
In .babelrc: { "presets": ["buildo"] }
require('babel-preset-buildo') in babel.config.js
Used as a Babel preset in configuration files, not imported in code.
with options
{ "presets": [["buildo", { "env": "react" }]] }
{ "presets": ["buildo", { "env": "react" }] }
Options are passed as an array with preset name first, then options object.
environment detection
Set BABEL_ENV or NODE_ENV to 'react' to automatically use react preset
Setting env option in preset options while also using BABEL_ENV/react-preset separately
The preset's env option overrides automatic detection from BABEL_ENV.

Basic setup of babel-preset-buildo with React env and custom browser targets.

// Install npm install --save-dev babel-preset-buildo // .babelrc { "presets": [ ["buildo", { "env": "react", "targets": { "chrome": 52, "node": 4 } }] ] } // Run Babel npx babel src --out-dir lib
Debug
Known issues
deprecatedDepends on babel-preset-env which has been superseded by @babel/preset-env since Babel 7.
fix
Use @babel/preset-env directly or migrate to Babel 7+.
affects: >=0.0.0
gotchaThe package does not specify exact peer dependencies in older versions; install may fail without manually installing babel-preset-env.
fix
Ensure babel-preset-env is installed: npm install --save-dev babel-preset-env
affects: >=0.0.0
gotchaThe env option is case-sensitive; 'react' and 'node' are the only supported values. Unknown values may silently default to 'node'.
fix
Use exactly 'react' or 'node' for the env option.
affects: >=0.0.0
deprecatedThe transform-class-properties and transform-object-rest-spread plugins are included by default but are now part of @babel/preset-env's shipped proposals.
fix
Use @babel/preset-env with appropriate corejs version instead.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'babel-preset-env'
Missing peer dependency babel-preset-env.
fix
npm install --save-dev babel-preset-env
Error: Plugin/Preset files are not allowed to export objects, only functions.
Using Babel 7+ which expects module formats that export functions, but babel-preset-buildo may export an object.
fix
Use Babel 6 or migrate to @babel/preset-env.
ReferenceError: regeneratorRuntime is not defined
Using async/generator functions without including babel-polyfill or @babel/polyfill.
fix
Add 'useBuiltIns': 'usage' option or import '@babel/polyfill'.
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies
babel-preset-envrequiredCore dependency for environment-based transpilation
babel-preset-reactoptionalRequired when env is set to 'react'
babel-plugin-transform-class-propertiesrequiredPlugin for class properties transform
babel-plugin-transform-object-rest-spreadrequiredPlugin for object rest/spread transform
Agent activity
2 hits · last 30 days
node
2
Resources
babel-preset-buildo — npm install babel-preset-buildo · libregistry