{"id":19347,"library":"babel-preset-turbo","title":"babel-preset-turbo","description":"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.","status":"abandoned","version":"0.0.6","language":"javascript","source_language":"en","source_url":"https://github.com/theicebear/babel-preset-turbo","tags":["javascript"],"install":[{"cmd":"npm install babel-preset-turbo","lang":"bash","label":"npm"},{"cmd":"yarn add babel-preset-turbo","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-preset-turbo","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required for Babel preset to function","package":"@babel/core","optional":false}],"imports":[{"note":"Only compatible with CJS require; preset usage is within Babel config file.","wrong":"const babelPresetTurbo = require('babel-preset-turbo')","symbol":"default","correct":"import babelPresetTurbo from 'babel-preset-turbo'"},{"note":"Preset is a string name, not a function import.","wrong":"module.exports = { presets: [require('babel-preset-turbo')] }","symbol":"preset","correct":"module.exports = { presets: ['babel-preset-turbo'] }"},{"note":"Use the package name, not a relative path.","wrong":"{\n  \"presets\": [\"./node_modules/babel-preset-turbo\"]\n}","symbol":"config","correct":"{\n  \"presets\": [\"babel-preset-turbo\"]\n}"}],"quickstart":{"code":"// Install\n// npm install --save-dev babel-preset-turbo\n\n// .babelrc\n{\n  \"presets\": [\"babel-preset-turbo\"]\n}\n\n// Or babel.config.js\nmodule.exports = {\n  presets: ['babel-preset-turbo']\n};","lang":"javascript","description":"Shows how to install and configure the preset in a Babel config file."},"warnings":[{"fix":"Use a modern preset like @babel/preset-env or @babel/preset-react with Turborepo.","message":"Package is unmaintained since 2018. No compatibility with modern Babel versions or TypeScript.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Add required plugins manually or switch to a full-featured preset.","message":"Preset does not include any transform plugins; it's essentially a no-op. May cause confusion when expected polyfills.","severity":"gotcha","affected_versions":"0.0.6"},{"fix":"Use 'babel-preset-turbo' as a string in the presets array.","message":"Preset name in config must be the package name string, not a function call.","severity":"gotcha","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":"Run npm install --save-dev babel-preset-turbo","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'babel-preset-turbo'"},{"fix":"Use the preset name as a string: [\"babel-preset-turbo\"]","cause":"Trying to import the preset as an object instead of a string in config.","error":"Error: Plugin/Preset files are not allowed to export objects, only functions."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}