Fable.Core 5.0.0-beta.1

This is a prerelease version of Fable.Core.
dotnet add package Fable.Core --version 5.0.0-beta.1
                    
NuGet\Install-Package Fable.Core -Version 5.0.0-beta.1
                    
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.Core" Version="5.0.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fable.Core" Version="5.0.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="Fable.Core" />
                    
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.Core --version 5.0.0-beta.1
                    
#r "nuget: Fable.Core, 5.0.0-beta.1"
                    
#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.Core@5.0.0-beta.1
                    
#: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.Core&version=5.0.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Fable.Core&version=5.0.0-beta.1&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 net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (560)

Showing the top 5 NuGet packages that depend on Fable.Core:

Package Downloads
Fable.Browser.Blob

Package Description

Thoth.Json.Net

Elm-inspired encoder and decoder for JSON targetting .Net and NetCore runtime

Fable.Browser.Event

Package Description

Fable.Browser.Dom

Package Description

Fable.Browser.WebStorage

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0-beta.1 333 7/25/2025
4.5.0 21,596 3/3/2025
4.4.0 5,333 2/16/2025
4.3.0 130,737 1/25/2024
4.2.0 48,506 10/24/2023
4.1.1 534 10/18/2023
4.1.0 39,270 9/29/2023
4.0.0 50,503 3/18/2023
4.0.0-theta-007 9,709 11/13/2022
4.0.0-theta-006 2,708 10/14/2022
4.0.0-theta-005 1,033 10/4/2022
4.0.0-theta-004 379 9/28/2022
4.0.0-theta-003 1,980 9/22/2022
4.0.0-theta-002 299 9/21/2022
4.0.0-theta-001 1,723 9/9/2022
4.0.0-snake-island-alpha-007 6,265 7/25/2022
4.0.0-snake-island-alpha-006 239 7/12/2022
4.0.0-snake-island-alpha-005 339 6/3/2022
4.0.0-snake-island-alpha-004 274 5/25/2022
4.0.0-snake-island-alpha-003 230 5/23/2022
4.0.0-snake-island-alpha-002 256 5/20/2022
4.0.0-snake-island-alpha-001 269 5/11/2022
4.0.0-beta-001 209 9/7/2022
3.7.1 370,422 5/27/2022
3.7.0 37,601 4/29/2022
3.6.2 127,705 2/17/2022
3.6.1 73,154 11/26/2021
3.6.0 4,511 11/19/2021
3.6.0-beta-001 477 11/17/2021
3.4.0 27,855 10/1/2021
3.3.1 12,108 9/16/2021
3.3.0-beta-001 1,450 8/28/2021
3.2.9 19,248 8/26/2021
3.2.8 140,252 6/11/2021
3.2.7 143,889 5/14/2021
3.2.6 14,399 4/9/2021
3.2.5 25,105 3/11/2021
3.2.4 24,458 2/12/2021
3.2.3 17,352 1/8/2021
3.2.2 9,032 12/22/2020
3.2.1 4,199 12/16/2020
3.2.0 6,304 12/4/2020
3.1.6 694,754 9/22/2020
3.1.5 486,094 2/10/2020
3.1.4 65,516 12/23/2019
3.1.3 53,481 11/7/2019
3.1.2 23,310 10/14/2019
3.1.1 53,615 9/25/2019
3.1.0 5,995 9/17/2019
3.0.0 880,140 4/16/2019
3.0.0-beta-006 1,415 4/12/2019
3.0.0-beta-005 7,839 3/13/2019
3.0.0-beta-004 3,812 3/12/2019
3.0.0-beta-003 583 3/5/2019
3.0.0-beta-002 1,038 3/4/2019
3.0.0-beta-001 560 2/28/2019
2.1.0-alpha-002 2,987 1/22/2019
2.1.0-alpha-001 666 1/22/2019
2.0.3 40,342 12/10/2018
2.0.2 10,185 11/20/2018
2.0.1 9,862 10/26/2018
2.0.0 30,358 9/28/2018
2.0.0-beta-001 9,504 8/1/2018
2.0.0-alpha-015 934 7/30/2018
2.0.0-alpha-014 1,075 7/19/2018
2.0.0-alpha-012 1,273 7/12/2018
2.0.0-alpha-011 2,156 6/25/2018
2.0.0-alpha-010 2,173 6/4/2018
2.0.0-alpha-006 2,215 5/30/2018
2.0.0-alpha-002 1,244 5/25/2018
2.0.0-alpha-001 1,194 5/24/2018
1.3.17 29,273 5/10/2018
1.3.16 3,764 5/5/2018
1.3.12 26,119 3/22/2018
1.3.11 9,906 3/8/2018
1.3.9 5,886 3/1/2018
1.3.8 71,703 1/23/2018
1.3.7 23,175 12/21/2017
1.3.6 3,376 12/14/2017
1.3.5 2,189 12/13/2017
1.3.4 3,896 11/29/2017
1.3.3 3,414 11/27/2017
1.3.1 4,910 11/21/2017
1.3.0 3,458 11/15/2017
1.3.0-beta-009 1,211 11/15/2017
1.3.0-beta-008 1,205 11/14/2017
1.3.0-beta-007 1,269 11/10/2017
1.3.0-beta-006 1,304 10/27/2017
1.3.0-beta-003 1,384 10/26/2017
1.3.0-beta-002 1,382 10/19/2017
1.3.0-beta-001 1,531 9/29/2017
1.2.4 21,082 9/27/2017
1.2.3 3,347 9/18/2017
1.2.2 2,566 9/18/2017
1.2.1 5,349 9/10/2017
1.2.0 6,090 9/6/2017
1.2.0-beta-004 1,105 9/5/2017
1.2.0-beta-003 1,968 8/31/2017
1.2.0-beta-002 1,700 8/30/2017
1.2.0-beta-001 2,233 8/23/2017
1.1.16 2,048 9/5/2017
1.1.15 8,131 8/22/2017
1.1.14 3,691 8/8/2017
1.1.12 2,704 7/31/2017
1.1.11 4,791 7/27/2017
1.1.10 4,425 7/24/2017
1.1.9 2,096 7/22/2017
1.1.8 7,224 7/18/2017
1.1.7 5,249 7/11/2017
1.1.6 5,590 7/4/2017
1.1.5 2,188 6/28/2017
1.1.4 2,107 6/24/2017
1.1.3 4,705 6/20/2017
1.1.2 4,658 6/20/2017
1.1.1 3,380 6/19/2017
1.1.0 2,161 6/15/2017
1.1.0-rc-002 1,358 6/12/2017
1.1.0-rc-001 1,356 6/10/2017
1.0.14 2,123 6/14/2017
1.0.12 1,957 6/14/2017
1.0.11 2,374 6/13/2017
1.0.10 2,042 6/13/2017
1.0.9 1,988 6/13/2017
1.0.8 8,766 6/2/2017
1.0.7 3,695 5/27/2017
1.0.6 3,804 5/24/2017
1.0.5 2,033 5/24/2017
1.0.4 5,091 5/17/2017
1.0.3 2,009 5/17/2017
1.0.2 2,282 5/17/2017
1.0.1 7,098 5/17/2017
1.0.0-narumi-921 1,985 5/17/2017
1.0.0-narumi-920 1,247 5/16/2017
1.0.0-narumi-918 1,818 5/16/2017
1.0.0-narumi-917 1,519 5/16/2017
1.0.0-narumi-916 1,561 5/15/2017
1.0.0-narumi-915 2,473 5/9/2017
1.0.0-narumi-912 3,313 4/23/2017
1.0.0-narumi-911 1,497 4/19/2017
1.0.0-narumi-910 1,385 4/19/2017
1.0.0-narumi-909 1,551 4/14/2017
1.0.0-narumi-908 2,114 4/2/2017
1.0.0-narumi-906 1,599 3/29/2017
1.0.0-narumi-905 1,404 3/27/2017
1.0.0-narumi-904 1,444 3/25/2017
1.0.0-narumi-903 1,494 3/23/2017
1.0.0-narumi-8 2,073 3/15/2017
1.0.0-narumi-7 1,312 3/14/2017
1.0.0-narumi-6 1,349 3/14/2017
1.0.0-narumi-5 1,477 3/13/2017
1.0.0-narumi-4 1,111 3/13/2017
1.0.0-narumi-15 1,539 3/22/2017
1.0.0-narumi-1 1,837 3/10/2017

### Added

* [JS/TS] Fix #3533: Add `emitJsTopDirectivePrologue` supports (by @MangelMaxime)
* [JS/TS] Fix #3533: Add `emitJsDirectivePrologue` supports (by @MangelMaxime)
* [All] Improve xml doc comments (by @shayanhabibi)

### Changed

* Enforce Fable.Core to dependes on FSharp.Core >= 4.7.2 (by @PierreYvesR)