{"id":19342,"library":"babel-preset-steelbrain","title":"babel-preset-steelbrain","description":"Personal Babel preset for latest ES features (stage-0) with React and decorator support. Version 5.0.3 is the latest stable release. This preset blacklists the `regenerator` transform by default to avoid including regenerator runtime, assuming Node.js built-in generator support. It offers configuration options similar to `babel-preset-env`, including `exclude` and `modules` options. Alternatives include `@babel/preset-env` and `@babel/preset-react`. Release cadence is irregular as it's a personal preset.","status":"active","version":"5.0.3","language":"javascript","source_language":"en","source_url":"https://github.com/steelbrain/babel-preset","tags":["javascript","steelbrain","babel"],"install":[{"cmd":"npm install babel-preset-steelbrain","lang":"bash","label":"npm"},{"cmd":"yarn add babel-preset-steelbrain","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-preset-steelbrain","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency for Babel 7 compatibility","package":"@babel/core","optional":false}],"imports":[{"note":"Babel presets are CommonJS modules, use require()","wrong":"import preset from 'babel-preset-steelbrain'","symbol":"default","correct":"module.exports = require('babel-preset-steelbrain')"}],"quickstart":{"code":"// .babelrc\n{\n  \"presets\": [\"steelbrain\"]\n}\n\n// or with options\n{\n  \"presets\": [\n    [\"steelbrain\", {\n      \"exclude\": [\"transform-regenerator\"],\n      \"modules\": false\n    }]\n  ]\n}\n\n// CLI usage:\n// babel --presets steelbrain src --out-dir lib","lang":"javascript","description":"Shows how to configure and use the babel preset in .babelrc or via CLI."},"warnings":[{"fix":"Upgrade to @babel/core 7 and use @babel/preset-env instead for broader compatibility.","message":"v5 dropped support for Babel 6. Requires @babel/core 7 or higher.","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"Migrate to @babel/preset-env with targets and @babel/preset-react.","message":"Deprecated in favor of @babel/preset-env and @babel/preset-react. This preset is personal and may not be maintained.","severity":"deprecated","affected_versions":">=5.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 babel-preset-steelbrain","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'babel-preset-steelbrain'"},{"fix":"Upgrade to @babel/core 7 or use the correct preset version (v4 for Babel 6).","cause":"Using an incompatible Babel version (Babel 6 vs 7).","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}