Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JSX] Hack to allow plugins to specify a property is to be spread rather than constructed as a key,value pair #4038

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
1 change: 1 addition & 0 deletions src/Fable.Transforms/BabelPrinter.fs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ module PrinterExtensions =
function
| _, NullOrUndefinedOrVoid -> ()
| key, StringConstant value -> printProp (fun () -> printer.Print($"{key}=\"{value}\""))
| "", value -> printProp (fun () -> printer.Print(value))
| key, value ->
printProp (fun () ->
printer.Print(key + "={")
Expand Down
Loading