{"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,"search_vec":"'1.0.0':15 'altern':68,71 'babel':2,7,20 'babel-plugin-fbt':19 'babel-plugin-fbt-runtim':1 'broader':62 'cadenc':55 'call':26 'companion':59 'complement':18 'consum':30 'direct':70 'ecosystem':64 'end':40,42 'end-to-end':39 'facebook':67 'fbt':4,11,22,33,46,63 'fbt._':25 'framework':13 'internation':12 'javascript':77 'librari':47 'maintain':65 'packag':51 'payload':29 'plugin':3,17,21 'product':49 'releas':54 'requir':37 'runtim':5,28,34 'secondari':6 'specif':74 'step':76 'transform':8,75 'transpil':24 'usag':43 'version':14","created_at":"2026-04-25T11:15:49.021307+00:00","updated_at":"2026-04-25T11:15:49.021307+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/facebook/fbt","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-fbt-runtime","openapi_spec":null,"status_page":null,"smithery":null,"categories":[],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}