We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc38b25 commit 9f12bcfCopy full SHA for 9f12bcf
compiler/core/js_pass_flatten_and_mark_dead.ml
@@ -245,6 +245,10 @@ let subst_map (substitution : J.expression Hash_ident.t) =
245
turn a runtime crash into compile time crash : )
246
*)
247
match Ext_list.nth_opt ls (Int32.to_int i) with
248
+ (* 7432: prevent optimization in JSX preserve mode *)
249
+ | Some {expression_desc = J.Var (Id {name = "make"})}
250
+ when !Js_config.jsx_preserve ->
251
+ super.expression self x
252
| Some
253
({expression_desc = J.Var _ | Number _ | Str _ | Undefined _} as
254
x) ->
0 commit comments