Registry /
devops / flipper-babel-transformer
A Babel transformer plugin used internally by Flipper (Facebook's mobile app debugging tool) to transpile Flipper plugin code. As part of the Flipper monorepo, it is tightly coupled with Flipper's build system and not intended for general use. Version 0.273.0 is current, with frequent releases alongside Flipper. No alternative exists since it is specific to Flipper's ecosystem. This package ships TypeScript types and is released under the MIT license.
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
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
This package is CommonJS only; ESM import not supported.
const transformer = require('flipper-babel-transformer');
Typically used to pass transformer path to webpack or Flipper config.
const path = require.resolve('flipper-babel-transformer');
Named export MetroTransformer for use with Metro bundler. Only available in CJS.
const { MetroTransformer } = require('flipper-babel-transformer');
Shows how to use the transformer's Babel config in a webpack rule for Flipper plugins.
// Using flipper-babel-transformer in a Flipper plugin webpack config
const transformer = require('flipper-babel-transformer');
module.exports = {
module: {
rules: [
{
test: /\.jsx?$/,
use: {
loader: 'babel-loader',
options: {
// This transformer is specific to Flipper plugin environment
...transformer.getBabelConfig(),
sourceMaps: true
}
}
}
]
}
};
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.