Fable.Compiler 5.0.0-alpha.22

This is a prerelease version of Fable.Compiler.
dotnet add package Fable.Compiler --version 5.0.0-alpha.22
                    
NuGet\Install-Package Fable.Compiler -Version 5.0.0-alpha.22
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fable.Compiler" Version="5.0.0-alpha.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fable.Compiler" Version="5.0.0-alpha.22" />
                    
Directory.Packages.props
<PackageReference Include="Fable.Compiler" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fable.Compiler --version 5.0.0-alpha.22
                    
#r "nuget: Fable.Compiler, 5.0.0-alpha.22"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fable.Compiler@5.0.0-alpha.22
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fable.Compiler&version=5.0.0-alpha.22&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Fable.Compiler&version=5.0.0-alpha.22&prerelease
                    
Install as a Cake Tool

Fable: F# |> JS

Nuget Build Join the chat at https://gitter.im/fable-compiler/Fable

Follow us on Twitter!

Fable is an F# to JavaScript compiler powered FSharp Compiler Services, designed to make F# a first-class citizen of the JavaScript ecosystem. Check the website for more information and if you find the project useful, don't forget to give us a star!

Fable actually uses a fork of FCS with a few tweaks. Binaries are in lib/fcs folder. See this PR for more info.

Getting started

Check this page.

Building

Requirements

Use VSCode Dev Container

You can use VSCode Dev Container to get a preconfigured environment both with requirements and VSCode extensions.

  1. You need to have docker installed and running.
  2. Install the Dev Container extension in VSCode
  3. Open the project in VSCode and click on the green button in the bottom left corner.
Use your machine

Make sure the following requirements are installed in your system:

Build

Run ./build.sh or ./build.cmd to see the build options.

When using VSCode, you can also run the build tasks from the command palette (Ctrl+Shift+P) by typing Run Task and selecting the task you want to run.

We also configured several debug configurations that you can use from the debug panel (Ctrl+Shift+D). This is useful as you can attach the debugger to the Fable compiler process to check what's going on.

Contributing

Just by using Fable you're already contributing! You can help the community a lot by sharing examples and experiences in your personal (or Fable's) blog and/or by editing the Fable Resources page.

Send bug reports (ideally with minimal code to reproduce the problem) and feature requests to this GitHub repository. To interact with the community you can use the Gitter chat but please note maintainers are not checking the chat regularly.

If you are up to contribute a fix or a feature yourself, you're more than welcome! Please send first an issue or a minimal Work In Progess PR so we can discuss the implementation details in advance.

List of changelogs

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Fable.Compiler:

Package Downloads
Fable.Plugins.NUnit

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0-alpha.22 34 2/3/2026
5.0.0-alpha.21 68 12/26/2025
5.0.0-alpha.20 203 12/15/2025
5.0.0-alpha.19 367 12/8/2025
5.0.0-alpha.18 157 12/4/2025
5.0.0-alpha.17 629 12/3/2025
5.0.0-alpha.16 134 11/27/2025
5.0.0-alpha.15 367 11/19/2025
5.0.0-alpha.14 372 7/25/2025
5.0.0-alpha.13 1,194 5/4/2025
5.0.0-alpha.12 137 3/14/2025
5.0.0-alpha.11 239 3/3/2025
5.0.0-alpha.10 150 2/16/2025
5.0.0-alpha.9 507 1/28/2025
5.0.0-alpha.8 147 1/27/2025
5.0.0-alpha.7 158 1/23/2025
5.0.0-alpha.6 152 1/23/2025
5.0.0-alpha.5 127 1/9/2025
5.0.0-alpha.4 179 1/3/2025
5.0.0-alpha.3 149 12/18/2024
5.0.0-alpha.2 674 11/26/2024
5.0.0-alpha.1 142 11/24/2024
4.0.0-alpha-019 180 11/25/2025
4.0.0-alpha-018 181 7/14/2025
4.0.0-alpha-017 199 4/26/2025
4.0.0-alpha-016 185 11/19/2024
4.0.0-alpha-015 245 10/28/2024
4.0.0-alpha-014 203 10/2/2024
4.0.0-alpha-013 201 9/19/2024
4.0.0-alpha-012 187 6/17/2024
4.0.0-alpha-011 872 6/13/2024
4.0.0-alpha-010 190 6/10/2024
4.0.0-alpha-009 227 5/24/2024
4.0.0-alpha-008 859 2/27/2024
4.0.0-alpha-007 282 2/20/2024
4.0.0-alpha-006 202 2/13/2024
4.0.0-alpha-005 317 2/12/2024
4.0.0-alpha-004 224 1/30/2024
4.0.0-alpha-003 193 1/30/2024
4.0.0-alpha-002 161 1/25/2024
4.0.0-alpha-001 224 12/14/2023
1.3.18 13,392 9/3/2018
1.3.17 9,146 5/10/2018
1.3.16 2,461 5/5/2018
1.3.15 10,252 4/19/2018
1.3.14 5,274 3/30/2018
1.3.12 2,503 3/22/2018
1.3.11 3,387 3/8/2018
1.3.10 3,987 3/1/2018
1.3.9 2,278 3/1/2018
1.3.8 7,175 1/23/2018
1.3.7 3,343 12/21/2017
1.3.6 2,742 12/14/2017
1.3.5 2,258 12/13/2017
1.3.4 2,766 11/29/2017
1.3.3 3,139 11/27/2017
1.3.2 3,047 11/23/2017
1.3.1 2,162 11/21/2017
1.3.0 2,201 11/15/2017
1.3.0-beta-009 1,425 11/15/2017
1.3.0-beta-008 1,363 11/14/2017
1.3.0-beta-007 1,438 11/10/2017
1.3.0-beta-006 1,448 10/27/2017
1.3.0-beta-003 1,799 10/26/2017
1.3.0-beta-002 1,541 10/19/2017
1.3.0-beta-001 1,643 9/29/2017
1.2.4 6,467 9/27/2017
1.2.3 2,824 9/18/2017
1.2.2 2,072 9/18/2017
1.2.1 3,469 9/10/2017
1.2.0 3,376 9/6/2017
1.2.0-beta-0015 1,799 8/31/2017
1.2.0-beta-0014 1,546 8/30/2017
1.2.0-beta-0012 1,507 8/28/2017
1.2.0-beta-001 1,805 8/23/2017
1.1.23 1,987 9/5/2017
1.1.22 2,146 8/22/2017
1.1.21 1,853 8/22/2017
1.1.20 2,413 8/8/2017
1.1.19 2,161 7/31/2017
1.1.18 2,025 7/27/2017
1.1.17 2,558 7/24/2017
1.1.16 1,955 7/22/2017
1.1.15 1,919 7/22/2017
1.1.14 2,004 7/18/2017
1.1.12 1,958 7/17/2017
1.1.11 2,296 7/13/2017
1.1.10 1,716 7/12/2017
1.1.9 2,097 7/11/2017
1.1.8 1,964 7/8/2017
1.1.7 2,221 7/5/2017
1.1.6 2,072 7/4/2017
1.1.5 1,868 6/28/2017
1.1.4 1,970 6/24/2017
1.1.3 2,017 6/20/2017
1.1.2 2,048 6/20/2017
1.1.1 2,024 6/19/2017
1.1.0 2,012 6/15/2017
1.1.0-rc-002 1,446 6/12/2017
1.1.0-rc-001 1,455 6/10/2017
1.0.14 1,989 6/14/2017
1.0.12 1,881 6/14/2017
1.0.11 1,969 6/13/2017
1.0.10 1,955 6/13/2017
1.0.9 1,887 6/13/2017
1.0.8 2,790 6/2/2017
1.0.7 2,116 5/27/2017
1.0.6 2,459 5/24/2017
1.0.5 1,896 5/24/2017
1.0.4 2,746 5/17/2017
1.0.3 1,874 5/17/2017
1.0.2 1,883 5/17/2017
1.0.1 1,913 5/17/2017
1.0.0-narumi-921 1,349 5/17/2017
1.0.0-narumi-920 1,476 5/16/2017
1.0.0-narumi-918 1,353 5/16/2017
1.0.0-narumi-917 1,553 5/16/2017
1.0.0-narumi-916 1,445 5/15/2017
1.0.0-narumi-915 1,626 5/9/2017
1.0.0-narumi-914 2,040 4/24/2017
1.0.0-narumi-912 1,536 4/23/2017
1.0.0-narumi-911 1,484 4/19/2017
1.0.0-narumi-910 1,429 4/19/2017
1.0.0-narumi-909 1,518 4/14/2017
1.0.0-narumi-908 1,810 4/2/2017
1.0.0-narumi-906 1,640 3/29/2017
1.0.0-narumi-905 1,429 3/27/2017
1.0.0-narumi-904 1,481 3/25/2017
1.0.0-narumi-903 1,544 3/23/2017
1.0.0-narumi-9 1,461 3/17/2017
1.0.0-narumi-8 1,511 3/15/2017
1.0.0-narumi-7 1,415 3/14/2017
1.0.0-narumi-6 1,454 3/14/2017
1.0.0-narumi-5 1,528 3/13/2017
1.0.0-narumi-4 1,374 3/13/2017
1.0.0-narumi-3 1,652 3/10/2017
1.0.0-narumi-2 1,349 3/10/2017
1.0.0-narumi-15 1,678 3/22/2017
1.0.0-narumi-10 1,564 3/20/2017
1.0.0-narumi-1 1,813 3/10/2017

### Changed

* [Python] Changed DU representation to use separate classes for each case (by @dbrattli)
* [Python] Fable will no longer auto-generate `__str__` or `__hash__` for custom types. Use the `Py.Stringable` and `Py.Hashable` marker interfaces to generate these methods (by @dbrattli)

### Added

* [Python] Added ABC base classes for F# types and Py marker interfaces for Python interop (by @dbrattli)
* [Python] Add tuple pattern matching with guards and improve match statement generation (by @dbrattli)
* [Python] Add Python 3.10+ match statement support for pattern matching (by @dbrattli)

### Fixed

* [Python] Fix curry/uncurry to handle arbitrary number of arguments (by @dbrattli)
* [Python] Fix type annotations for protocols, Option casting, and abstract classes (by @dbrattli)
* [Python] Fix type annotations for curried functions and numeric types (by @dbrattli)
* [Python] Fix type annotations for inref, IList, DateKind, and regex collections (by @dbrattli)
* [Python] Fix type annotations for protocols, ABCs, Atom, and Set module (by @dbrattli)
* [Python] Fix type annotations for async functions, date operations, and None handling (by @dbrattli)
* [Python] Fix type annotations for tuple indexing, generic defaults, and reflection (by @dbrattli)
* [All] Fix `StringBuilder.Chars` getter and setter (by @MangelMaxime)