Registry / devops / babel-preset-turbo

babel-preset-turbo

JSON →
library0.0.6jsnpmunverified

An opinionated Babel preset intended for use with the Turbo build system (likely Turborepo). Current version 0.0.6, last updated in 2018. No active maintenance or recent releases. Provides a minimal configuration for Babel-transpiled code in Turbo projects. Differentiates by being purpose-built for Turbo, but has been superseded by more comprehensive presets and official Turborepo tooling.

npm install babel-preset-turbo
INSTALL
IMPORT
SIG · BABEL-PRESET-TURBO
B
babel-preset-turbo
devopsjavascriptv0.0.6
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
import babelPresetTurbo from 'babel-preset-turbo'
const babelPresetTurbo = require('babel-preset-turbo')
Only compatible with CJS require; preset usage is within Babel config file.
preset
module.exports = { presets: ['babel-preset-turbo'] }
module.exports = { presets: [require('babel-preset-turbo')] }
Preset is a string name, not a function import.
config
{ "presets": ["babel-preset-turbo"] }
{ "presets": ["./node_modules/babel-preset-turbo"] }
Use the package name, not a relative path.

Shows how to install and configure the preset in a Babel config file.

// Install // npm install --save-dev babel-preset-turbo // .babelrc { "presets": ["babel-preset-turbo"] } // Or babel.config.js module.exports = { presets: ['babel-preset-turbo'] };
Debug
Known issues
deprecatedPackage is unmaintained since 2018. No compatibility with modern Babel versions or TypeScript.
fix
Use a modern preset like @babel/preset-env or @babel/preset-react with Turborepo.
affects: >=0.0.0
gotchaPreset does not include any transform plugins; it's essentially a no-op. May cause confusion when expected polyfills.
fix
Add required plugins manually or switch to a full-featured preset.
affects: 0.0.6
gotchaPreset name in config must be the package name string, not a function call.
fix
Use 'babel-preset-turbo' as a string in the presets array.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'babel-preset-turbo'
Package not installed or not in node_modules.
fix
Run npm install --save-dev babel-preset-turbo
Error: Plugin/Preset files are not allowed to export objects, only functions.
Trying to import the preset as an object instead of a string in config.
fix
Use the preset name as a string: ["babel-preset-turbo"]
Upgrade
Version history
0.0.6latest on npm
Audit
Dependencies
@babel/corerequiredPeer dependency required for Babel preset to function
Agent activity
4 hits · last 30 days
node
4
Resources
babel-preset-turbo — npm install babel-preset-turbo · libregistry