File tree Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 2323#### :bug : Bug fix
2424
2525- Fix code generation for emojis in polyvars and labels. https://github.com/rescript-lang/rescript/pull/7853
26+ - Add ` reset ` to ` experimental_features ` to correctly reset playground. https://github.com/rescript-lang/rescript/pull/7868
2627- Fix crash with ` @get ` on external of type ` unit => 'a ` . https://github.com/rescript-lang/rescript/pull/7866
2728
2829#### :memo : Documentation
3132
3233#### :house : Internal
3334
35+ - Playground: Add config options for experimental features and jsx preserve mode. https://github.com/rescript-lang/rescript/pull/7865
36+
3437# 12.0.0-beta.10
3538
3639#### :rocket : New Feature
Original file line number Diff line number Diff line change @@ -378,6 +378,7 @@ module Compile = struct
378378 (* Responsible for resetting all compiler state as if it were a new instance *)
379379 let reset_compiler () =
380380 warning_infos := [||];
381+ Experimental_features. reset () ;
381382 flush_warning_buffer () |> ignore;
382383 Warnings. reset_fatal () ;
383384 Env. reset_cache_toplevel ()
Original file line number Diff line number Diff line change @@ -20,4 +20,6 @@ let enable_from_string (s : string) =
2020 | Some f -> enabled_features := FeatureSet. add f ! enabled_features
2121 | None -> ()
2222
23+ let reset () = enabled_features := FeatureSet. empty
24+
2325let is_enabled (f : feature ) = FeatureSet. mem f ! enabled_features
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ type feature = LetUnwrap
33val enable_from_string : string -> unit
44val is_enabled : feature -> bool
55val to_string : feature -> string
6+ val reset : unit -> unit
You can’t perform that action at this time.
0 commit comments