{"id":19058,"library":"babel-plugin-fbt-runtime","title":"babel-plugin-fbt-runtime","description":"Secondary Babel transform for the FBT internationalization framework, version 1.0.0. This plugin complements babel-plugin-fbt by transpiling fbt._(...) calls into runtime payloads consumable by the fbt runtime. It is required for end-to-end usage of the fbt library in production. The package has no release cadence; it is a companion to the broader fbt ecosystem maintained by Facebook. Alternative: no direct alternative for this specific transform step.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/facebook/fbt","tags":["javascript"],"install":[{"cmd":"npm install babel-plugin-fbt-runtime","lang":"bash","label":"npm"},{"cmd":"yarn add babel-plugin-fbt-runtime","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-plugin-fbt-runtime","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required peer dependency; this plugin expects the primary fbt transform to be present.","package":"babel-plugin-fbt","optional":false}],"imports":[{"note":"This is a Babel plugin, not a module with named exports. Use require in Babel config.","wrong":"import plugin from 'babel-plugin-fbt-runtime'","symbol":"plugin","correct":"module.exports = require('babel-plugin-fbt-runtime')"}],"quickstart":{"code":"// .babelrc\n{\n  \"plugins\": [\n    [\"module:babel-plugin-fbt\", { \"extraOptions\": {} }],\n    \"babel-plugin-fbt-runtime\"\n  ]\n}\n\n// or babel.config.js\nmodule.exports = {\n  plugins: [\n    [require('babel-plugin-fbt'), { /* options */ }],\n    require('babel-plugin-fbt-runtime')\n  ]\n};","lang":"javascript","description":"Setup Babel to use both fbt plugins: primary and runtime transforms."},"warnings":[{"fix":"Ensure order: first babel-plugin-fbt, then babel-plugin-fbt-runtime.","message":"This plugin must come after babel-plugin-fbt in the plugins array.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Migrate to a more modern i18n solution.","message":"The package is not actively maintained; consider alternatives like i18next or react-intl.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Run: npm install babel-plugin-fbt --save-dev","message":"You must also install babel-plugin-fbt as a peer dependency; otherwise, the transform will fail at runtime.","severity":"gotcha","affected_versions":">=1.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-plugin-fbt-runtime","cause":"Package not installed in project.","error":"Error: Cannot find module 'babel-plugin-fbt-runtime'"},{"fix":"Add 'babel-plugin-fbt-runtime' to your Babel plugins after babel-plugin-fbt.","cause":"Missing the runtime transform; fbt._ calls are not transpiled.","error":"TypeError: fbt._ is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}