The library for web and native user interfaces.
Mirrored from https://github.com/247TaxiDriver/QOS-React.git
Synced Nov 14, 05:30 UTC
[repro] Repro for fbt preserve whitespace bug
Current sprout output (if you remove the line in `SproutTodoFilter`): ``` Failures: FAIL: bug-fbt-preserve-whitespace Difference in forget and non-forget results. Expected result: { "kind": "ok", "value": "Before text hello world", "logs": [] } Found: { "kind": "ok", "value": "Before texthello world", "logs": [] } ``` `fbt` transforms run before jsx ones, so our lowering should also account for [fbt's whitespace rules](https://github.com/facebook/fbt/blob/main/packages/babel-plugin-fbt/src/fbt-nodes/FbtImplicitParamNode.js#L230-L233) in `BuildHIR:trimJsxText`.