fast-flow-transform-linux-x64-musl
raw JSON → 0.0.3 verified Fri May 01 auth: no javascript
Native x86_64 Linux musl binary for fast-flow-transform, a high-performance Flow type stripping transform using Hermes/FFT. This is a platform-specific package automatically installed by the parent `fast-flow-transform` package (v0.0.3, unstable pre-1.0). It integrates with webpack, rspack, rsbuild, Parcel, Vite, Rollup, Rolldown, and esbuild. Only install this directly if manually selecting platforms; otherwise use `fast-flow-transform`. Requires Node >=18.
Common errors
error ERR_MODULE_NOT_FOUND: Cannot find package 'fast-flow-transform-linux-x64-musl' ↓
cause Importing directly from platform binary package instead of parent.
fix
Use import from 'fast-flow-transform'.
error Error: Dynamic require of \"fast-flow-transform-linux-x64-musl\" is not supported ↓
cause Attempting to require() an ESM-only package or platform binary.
fix
Use ESM import from 'fast-flow-transform'.
Warnings
gotcha This package is a platform-specific binary optional dependency. Direct installation or import will fail. ↓
fix Remove direct dependency and use 'fast-flow-transform' instead.
gotcha Only works on x86_64 Linux with musl libc (e.g., Alpine). Other platforms must install the corresponding binary or use the transform in JavaScript-only fallback mode. ↓
fix Install the matching platform package (e.g., fast-flow-transform-linux-x64-gnu) or use fast-flow-transform's JavaScript fallback.
gotcha Package is at version 0.0.3 (pre-1.0). API may change without major semver bump. ↓
fix Pin exact version and test thoroughly on upgrade.
Install
npm install fast-flow-transform-linux-x64-musl yarn add fast-flow-transform-linux-x64-musl pnpm add fast-flow-transform-linux-x64-musl Imports
- PlatformBinary wrong
import { transformFlow } from 'fast-flow-transform-linux-x64-musl'correct// Not imported directly; use 'fast-flow-transform'. import { transformFlow } from 'fast-flow-transform'
Quickstart
// This binary package should not be used directly.
// Instead, install the parent package:
// npm install fast-flow-transform
// Then use it with your bundler:
import { transformFlow } from 'fast-flow-transform';
const code = `// @flow
function add(a: number, b: number): number { return a + b; }`;
const result = transformFlow(code, { all: true });
console.log(result.code); // 'function add(a, b) { return a + b; }'