File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1010> - :house : [ Internal]
1111> - :nail_care : [ Polish]
1212
13+ # 11.1.5 (Unreleased)
14+
15+ - Deprecate JSX 3 https://github.com/rescript-lang/rescript-compiler/pull/7042
16+
1317# 11.1.4
1418
1519- Fix issue where long layout break added a trailing comma in partial application ` ... ` . https://github.com/rescript-lang/rescript-compiler/pull/6949
Original file line number Diff line number Diff line change @@ -43,7 +43,13 @@ let from_map map =
4343 match m.?(Bsb_build_schemas. jsx_version) with
4444 | Some (Flo { loc; flo } ) -> (
4545 match flo with
46- | "3" -> version := Some Jsx_v3
46+ | "3" ->
47+ let loc_end =
48+ {loc with Lexing. pos_cnum = loc.Lexing. pos_cnum + 1 }
49+ in
50+ let loc = {Warnings. loc_start = loc; loc_end; loc_ghost = false } in
51+ Location. deprecated loc " jsx 3 is deprecated, use jsx 4 instead" ;
52+ version := Some Jsx_v3
4753 | "4" -> version := Some Jsx_v4
4854 | _ -> Bsb_exception. errorf ~loc " Unsupported jsx version %s" flo
4955 )
You can’t perform that action at this time.
0 commit comments