Fable.Compiler 5.0.0-alpha.14

This is a prerelease version of Fable.Compiler.
dotnet add package Fable.Compiler --version 5.0.0-alpha.14
                    
NuGet\Install-Package Fable.Compiler -Version 5.0.0-alpha.14
                    
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.14" />
                    
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.14" />
                    
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.14
                    
#r "nuget: Fable.Compiler, 5.0.0-alpha.14"
                    
#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.14
                    
#: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.14&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Fable.Compiler&version=5.0.0-alpha.14&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 net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.14 302 7/25/2025
5.0.0-alpha.13 201 5/4/2025
5.0.0-alpha.12 81 3/14/2025
5.0.0-alpha.11 188 3/3/2025
5.0.0-alpha.10 102 2/16/2025
5.0.0-alpha.9 395 1/28/2025
5.0.0-alpha.8 98 1/27/2025
5.0.0-alpha.7 107 1/23/2025
5.0.0-alpha.6 87 1/23/2025
5.0.0-alpha.5 76 1/9/2025
5.0.0-alpha.4 122 1/3/2025
5.0.0-alpha.3 98 12/18/2024
5.0.0-alpha.2 531 11/26/2024
5.0.0-alpha.1 99 11/24/2024
4.0.0-alpha-018 125 7/14/2025
4.0.0-alpha-017 124 4/26/2025
4.0.0-alpha-016 121 11/19/2024
4.0.0-alpha-015 178 10/28/2024
4.0.0-alpha-014 137 10/2/2024
4.0.0-alpha-013 139 9/19/2024
4.0.0-alpha-012 118 6/17/2024
4.0.0-alpha-011 323 6/13/2024
4.0.0-alpha-010 126 6/10/2024
4.0.0-alpha-009 149 5/24/2024
4.0.0-alpha-008 774 2/27/2024
4.0.0-alpha-007 201 2/20/2024
4.0.0-alpha-006 137 2/13/2024
4.0.0-alpha-005 243 2/12/2024
4.0.0-alpha-004 168 1/30/2024
4.0.0-alpha-003 122 1/30/2024
4.0.0-alpha-002 110 1/25/2024
4.0.0-alpha-001 163 12/14/2023
1.3.18 13,207 9/3/2018
1.3.17 8,859 5/10/2018
1.3.16 2,183 5/5/2018
1.3.15 9,501 4/19/2018
1.3.14 4,970 3/30/2018
1.3.12 2,238 3/22/2018
1.3.11 3,115 3/8/2018
1.3.10 3,697 3/1/2018
1.3.9 2,036 3/1/2018
1.3.8 6,885 1/23/2018
1.3.7 3,153 12/21/2017
1.3.6 2,477 12/14/2017
1.3.5 1,977 12/13/2017
1.3.4 2,557 11/29/2017
1.3.3 2,934 11/27/2017
1.3.2 2,823 11/23/2017
1.3.1 1,946 11/21/2017
1.3.0 2,011 11/15/2017
1.3.0-beta-009 1,210 11/15/2017
1.3.0-beta-008 1,182 11/14/2017
1.3.0-beta-007 1,212 11/10/2017
1.3.0-beta-006 1,246 10/27/2017
1.3.0-beta-003 1,283 10/26/2017
1.3.0-beta-002 1,347 10/19/2017
1.3.0-beta-001 1,428 9/29/2017
1.2.4 6,271 9/27/2017
1.2.3 2,636 9/18/2017
1.2.2 1,844 9/18/2017
1.2.1 3,269 9/10/2017
1.2.0 3,188 9/6/2017
1.2.0-beta-0015 1,576 8/31/2017
1.2.0-beta-0014 1,344 8/30/2017
1.2.0-beta-0012 1,302 8/28/2017
1.2.0-beta-001 1,598 8/23/2017
1.1.23 1,799 9/5/2017
1.1.22 1,924 8/22/2017
1.1.21 1,645 8/22/2017
1.1.20 2,194 8/8/2017
1.1.19 1,952 7/31/2017
1.1.18 1,801 7/27/2017
1.1.17 2,343 7/24/2017
1.1.16 1,778 7/22/2017
1.1.15 1,698 7/22/2017
1.1.14 1,802 7/18/2017
1.1.12 1,758 7/17/2017
1.1.11 2,093 7/13/2017
1.1.10 1,500 7/12/2017
1.1.9 1,895 7/11/2017
1.1.8 1,734 7/8/2017
1.1.7 2,011 7/5/2017
1.1.6 1,874 7/4/2017
1.1.5 1,678 6/28/2017
1.1.4 1,741 6/24/2017
1.1.3 1,833 6/20/2017
1.1.2 1,831 6/20/2017
1.1.1 1,819 6/19/2017
1.1.0 1,812 6/15/2017
1.1.0-rc-002 1,237 6/12/2017
1.1.0-rc-001 1,257 6/10/2017
1.0.14 1,773 6/14/2017
1.0.12 1,674 6/14/2017
1.0.11 1,752 6/13/2017
1.0.10 1,737 6/13/2017
1.0.9 1,706 6/13/2017
1.0.8 2,605 6/2/2017
1.0.7 1,913 5/27/2017
1.0.6 2,222 5/24/2017
1.0.5 1,694 5/24/2017
1.0.4 2,552 5/17/2017
1.0.3 1,666 5/17/2017
1.0.2 1,687 5/17/2017
1.0.1 1,723 5/17/2017
1.0.0-narumi-921 1,148 5/17/2017
1.0.0-narumi-920 1,264 5/16/2017
1.0.0-narumi-918 1,171 5/16/2017
1.0.0-narumi-917 1,341 5/16/2017
1.0.0-narumi-916 1,235 5/15/2017
1.0.0-narumi-915 1,422 5/9/2017
1.0.0-narumi-914 1,832 4/24/2017
1.0.0-narumi-912 1,313 4/23/2017
1.0.0-narumi-911 1,285 4/19/2017
1.0.0-narumi-910 1,246 4/19/2017
1.0.0-narumi-909 1,304 4/14/2017
1.0.0-narumi-908 1,590 4/2/2017
1.0.0-narumi-906 1,406 3/29/2017
1.0.0-narumi-905 1,222 3/27/2017
1.0.0-narumi-904 1,295 3/25/2017
1.0.0-narumi-903 1,313 3/23/2017
1.0.0-narumi-9 1,244 3/17/2017
1.0.0-narumi-8 1,291 3/15/2017
1.0.0-narumi-7 1,195 3/14/2017
1.0.0-narumi-6 1,246 3/14/2017
1.0.0-narumi-5 1,302 3/13/2017
1.0.0-narumi-4 1,170 3/13/2017
1.0.0-narumi-3 1,342 3/10/2017
1.0.0-narumi-2 1,166 3/10/2017
1.0.0-narumi-15 1,463 3/22/2017
1.0.0-narumi-10 1,346 3/20/2017
1.0.0-narumi-1 1,482 3/10/2017

### Added

* [Python] Support for Nullable Reference Types (by @dbrattli)
* [JS/TS] Fix #3533: Add directives prologues supports (by @MangelMaxime)
* [JS/TS] Support for Nullable Reference Types (by @ncave and @MangelMaxime)
* [Rust] Initial support for Nullable Reference Types (by @ncave)

### Changed

* [Python] Use Python 3.12 type parameter syntax. Deprecate Python 3.10 and 3.11 (by @dbrattli)
* [Python] Records now snake-cases all member fields (by @dbrattli)
* [Python] Anonymous records now preserves the casing of member fields (by @dbrattli)
* [Python] Option type is now `Option[T]` instead of `T | None` (by @dbrattli)
* [Python] Use [uv](https://docs.astral.sh/uv/) instead of Poetry for package management (by @dbrattli)
* [Python] Fable Library for Python is now partially written in Rust (by @dbrattli)
* [All] Improve filewatcher error messages (by @goswinr)

### Fixed

* [Python] Fixed static properties and are now translated as Python class attributes (by @dbrattli)
* [Python] Fixed DateTime with DateTimeKind generates proper enum reference (#3689) (by @dbrattli)
* [Python] Fixed Dictionary KeyValuePair enumeration when casting to IEnumerable (#3771) (by @dbrattli)
* [Python] Fixed `createEmpty<T>` for interfaces using `SimpleNamespace` with type casting (#3604) (by @dbrattli)
* [Python] Fixed EmitMethod + ParamObject losing keyword arguments (#3871) (by @dbrattli)
* [Python] Fixed EmitConstructor + ParamObject losing keyword arguments (#3871) (by @dbrattli)
* [Python] Fixed DateTimeOffset.TryParse, ToString() and Offset property access (#3854) (by @dbrattli)
* [Python] Fixed anonymous records in Maps causing comparison errors (#3869) (by @dbrattli)
* [Python] Fixed handling of erased types for Python (#3968) (by @dbrattli)
* [Python] Fixed unit function (zero arguments functions) are transpiled inconsistently (#4126) (by @dbrattli)
* [Python] Fixed resource managers with empty body (#3912) (by @dbrattli)
* [Python] Fixed `Async.Sleep`to handle TimeSpan correctly (#4137) (by @dbrattli)
* [Python] Make sure snake-cased Record do not conflict (by @dbrattli)
* [Python] Do not return None | None for optional unit types (#4127) (by @dbrattli)
* [JS/TS] JSX : Alias `empty` CEs list to `null` when encountered in the `children` list (by @MangelMaxime)
* [JS/TS] JSX : Allow usage of `unbox` when definining properties for `JSX.create` (by @MangelMaxime)