Fable
Fable copied to clipboard
F# to JavaScript, TypeScript, Python, Rust and Dart Compiler
[repl](https://fable.io/repl/#?code=PYBwpgdgBAYghgIwDZgHQGFgCcwFgBQoksiKG2aAUgMoEED09UA2gDwCCALp3AMYAWAWTABbBGCwBnLpywBLBAFdOYAHwBdApwCe4KOyy8AKqTAAKCHBFgAXFEmy5EAOYBKKAF4CUH1GtiJKAA3OCQoS2tPcKswKAB3OU5+KGcwTgAaezS6fF8oRiZWSUURETgsbVVvXwKoAAkwJCRgAEJqn1rWemLS8sr2v1FxLCgkuUlUI0akYQBNYEUsADkYs3cPKBB5CE4AM2gAIgam4Ey5KCsoAFJ2FoPR-nHUCLAgA&html=Q&css=Q) Without `[]`: ```js /** * Hello! */ export function ArcTable__TellMeYourName(this$) { const arg = ArcTable__get_name(this$); toConsole(printf("Hello, i am %A!"))(arg); } ``` With: ```js export class ArcTable { constructor(name) {...
Originally reported on [Feliz repo here](https://github.com/fable-hub/Feliz/issues/660#issuecomment-2858088193) It is common to have condition in the properties list to conditionally apply some classes for example: ```fs let Ele() = JSX.create "div" [...
When using `net48`, `Fable.Core` has an implicit dependency on `FSharp.Core` 9. This triggers warning `MSB3277` during build: ``` warning MSB3277: Found conflicts between different versions of "FSharp.Core" that could not...
In #4110, it was pointed out that user could have a hard time figuring out why Fable is failing to compile their JSX code. We should create a dedicated doc...
# Issue Currently if a function is not decorated with the `[]`, it will be called as function and not JSX.Component. For Feliz this is a rather breaking change as...
I was working on the [SAFE.Utils](https://github.com/SAFE-Stack/SAFE.Utils) repository, and ran into some weird issue when compiling and running tests. This is my package.json: ``` { "type": "module", "scripts": { "pretest": "dotnet...
This lets you use RegexOptions.NonBacktracking in combination with RegexOptions.ECMAScript as the [js equivalent linear `l` flag](https://v8.dev/blog/non-backtracking-regexp) for regex. `l` is limited but has vastly better performance characteristics for e.g., IsMatch...
I am only working on JS/TS code for now, which explains why others target fails in the CI. With the nullable information we have trouble with TypeScript compiler type inference:...
This additional, non-obstructive branch statement in the JSX adds functionality that is particularly needed in my case to spread objects in JSX. A plugin can provide an invalid attribute name...
**Environment:** * Fable Version: Fable REPL (4.23.0 as of writing) * Target: JavaScript **Description:** When using an `inline` function with multiple generic type parameters (`'a`, `'b`) that are both constrained...