fable-compiler / Fable

F# to JavaScript, TypeScript, Python, Rust and Dart Compiler
http://fable.io/
MIT License
2.86k stars 296 forks source link

`fable-compiler-js` only includes the `fable-library-js` #3827

Open MangelMaxime opened 2 months ago

MangelMaxime commented 2 months ago

Description

There an inconsistency in fable-compiler-js.

Indeed, that CLI tool can compile to any output target however, it only includes the fable-libary for the JavaScript version of Fable.

We should either includes the other fable-library versions or allows that tool to only support JavaScript like target (JavaScript and TypeScript). If we choose the later it mean we still needs to also include fable-library-ts in the distributed package.

ncave commented 2 months ago

@MangelMaxime

We should either includes the other fable-library

Yes, we should be including all fable libraries, and the Fable JS CLI should be copying them locally to output folder in /fable_modules on compile, same as what .NET Fable CLI does.

Thank you for opening this issue, I'll take a look when I can.