Fable is an F# to JavaScript/TypeScript/Python/Dart/Rust/Erlang compiler. The current stable release is 4.29.0 with 5.0.0 in release candidate (rc.7). It is under active development, releasing multiple alpha/rc versions per month. Key differentiators: single codebase compiles to multiple targets, supports F# quotations, integrates with .NET tooling via dotnet CLI. The compiler is distributed as a .NET tool via NuGet.
npm install fable-compiler-dotnetNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles the current F# file to JavaScript using Fable.Cli NuGet package.
Replace 'fable' with 'dotnet fable' in scripts and CI.
Review output directory structure and imports.
Migrate to Fable.Cli with 'dotnet fable'.
Replace [<Emit>] with platform-specific interop attributes.
Use FSharp.Core's List or Array for structural equality, or implement custom equality.
Test your F# code against Fable's supported API subset.
Add '#r "nuget: Fable.Cli"' before using Fable.Cli module.
Upgrade to Fable >=5.0.0-rc.1 to use '--lang beam'.
Use platform-specific interop or Fable.Core.JsInterop.
Ensure you have added Fable.Library NuGet package and restored.
No dependency data recorded yet.