Fable.Compiler 5.0.0-alpha.1

This is a prerelease version of Fable.Compiler.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Fable.Compiler --version 5.0.0-alpha.1                
NuGet\Install-Package Fable.Compiler -Version 5.0.0-alpha.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.Compiler" Version="5.0.0-alpha.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Fable.Compiler --version 5.0.0-alpha.1                
#r "nuget: Fable.Compiler, 5.0.0-alpha.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.
// Install Fable.Compiler as a Cake Addin
#addin nuget:?package=Fable.Compiler&version=5.0.0-alpha.1&prerelease

// Install Fable.Compiler as a Cake Tool
#tool nuget:?package=Fable.Compiler&version=5.0.0-alpha.1&prerelease                

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. 
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.2 75 11/26/2024
5.0.0-alpha.1 44 11/24/2024
4.0.0-alpha-016 67 11/19/2024
4.0.0-alpha-015 133 10/28/2024
4.0.0-alpha-014 96 10/2/2024
4.0.0-alpha-013 98 9/19/2024
4.0.0-alpha-012 85 6/17/2024
4.0.0-alpha-011 285 6/13/2024
4.0.0-alpha-010 91 6/10/2024
4.0.0-alpha-009 124 5/24/2024
4.0.0-alpha-008 640 2/27/2024
4.0.0-alpha-007 169 2/20/2024
4.0.0-alpha-006 117 2/13/2024
4.0.0-alpha-005 215 2/12/2024
4.0.0-alpha-004 139 1/30/2024
4.0.0-alpha-003 93 1/30/2024
4.0.0-alpha-002 76 1/25/2024
4.0.0-alpha-001 139 12/14/2023
1.3.18 13,060 9/3/2018
1.3.17 8,554 5/10/2018
1.3.16 1,883 5/5/2018
1.3.15 8,348 4/19/2018
1.3.14 4,569 3/30/2018
1.3.12 1,942 3/22/2018
1.3.11 2,806 3/8/2018
1.3.10 3,391 3/1/2018
1.3.9 1,734 3/1/2018
1.3.8 6,571 1/23/2018
1.3.7 2,940 12/21/2017
1.3.6 2,173 12/14/2017
1.3.5 1,670 12/13/2017
1.3.4 2,347 11/29/2017
1.3.3 2,724 11/27/2017
1.3.2 2,600 11/23/2017
1.3.1 1,731 11/21/2017
1.3.0 1,794 11/15/2017
1.3.0-beta-009 1,002 11/15/2017
1.3.0-beta-008 968 11/14/2017
1.3.0-beta-007 1,008 11/10/2017
1.3.0-beta-006 1,037 10/27/2017
1.3.0-beta-003 1,080 10/26/2017
1.3.0-beta-002 1,134 10/19/2017
1.3.0-beta-001 1,212 9/29/2017
1.2.4 6,045 9/27/2017
1.2.3 2,421 9/18/2017
1.2.2 1,625 9/18/2017
1.2.1 3,061 9/10/2017
1.2.0 2,975 9/6/2017
1.2.0-beta-0015 1,367 8/31/2017
1.2.0-beta-0014 1,134 8/30/2017
1.2.0-beta-0012 1,090 8/28/2017
1.2.0-beta-001 1,388 8/23/2017
1.1.23 1,570 9/5/2017
1.1.22 1,703 8/22/2017
1.1.21 1,427 8/22/2017
1.1.20 1,975 8/8/2017
1.1.19 1,732 7/31/2017
1.1.18 1,581 7/27/2017
1.1.17 2,122 7/24/2017
1.1.16 1,555 7/22/2017
1.1.15 1,478 7/22/2017
1.1.14 1,585 7/18/2017
1.1.12 1,538 7/17/2017
1.1.11 1,868 7/13/2017
1.1.10 1,278 7/12/2017
1.1.9 1,677 7/11/2017
1.1.8 1,516 7/8/2017
1.1.7 1,787 7/5/2017
1.1.6 1,651 7/4/2017
1.1.5 1,467 6/28/2017
1.1.4 1,522 6/24/2017
1.1.3 1,620 6/20/2017
1.1.2 1,608 6/20/2017
1.1.1 1,598 6/19/2017
1.1.0 1,598 6/15/2017
1.1.0-rc-002 1,020 6/12/2017
1.1.0-rc-001 1,035 6/10/2017
1.0.14 1,550 6/14/2017
1.0.12 1,462 6/14/2017
1.0.11 1,524 6/13/2017
1.0.10 1,516 6/13/2017
1.0.9 1,482 6/13/2017
1.0.8 2,381 6/2/2017
1.0.7 1,691 5/27/2017
1.0.6 1,997 5/24/2017
1.0.5 1,478 5/24/2017
1.0.4 2,326 5/17/2017
1.0.3 1,447 5/17/2017
1.0.2 1,469 5/17/2017
1.0.1 1,499 5/17/2017
1.0.0-narumi-921 934 5/17/2017
1.0.0-narumi-920 1,038 5/16/2017
1.0.0-narumi-918 954 5/16/2017
1.0.0-narumi-917 1,126 5/16/2017
1.0.0-narumi-916 1,022 5/15/2017
1.0.0-narumi-915 1,205 5/9/2017
1.0.0-narumi-914 1,612 4/24/2017
1.0.0-narumi-912 1,098 4/23/2017
1.0.0-narumi-911 1,071 4/19/2017
1.0.0-narumi-910 1,034 4/19/2017
1.0.0-narumi-909 1,090 4/14/2017
1.0.0-narumi-908 1,373 4/2/2017
1.0.0-narumi-906 1,189 3/29/2017
1.0.0-narumi-905 1,005 3/27/2017
1.0.0-narumi-904 1,077 3/25/2017
1.0.0-narumi-903 1,094 3/23/2017
1.0.0-narumi-9 1,031 3/17/2017
1.0.0-narumi-8 1,071 3/15/2017
1.0.0-narumi-7 973 3/14/2017
1.0.0-narumi-6 1,029 3/14/2017
1.0.0-narumi-5 1,080 3/13/2017
1.0.0-narumi-4 953 3/13/2017
1.0.0-narumi-3 1,121 3/10/2017
1.0.0-narumi-2 944 3/10/2017
1.0.0-narumi-15 1,247 3/22/2017
1.0.0-narumi-10 1,133 3/20/2017
1.0.0-narumi-1 1,069 3/10/2017

## Added

- [All] Add `--legacyCracker` as a fallback

## Changed

- [All] Make MSBuildCracker the default
- [All] Replace `FABLE_COMPILER_4` with `FABLE_COMPILER_5` as the compiler directive
- [All] Move TargetFramework to `net8.0`