diff --git a/compiler/jsoo/dune b/compiler/jsoo/dune index 209f9d9f05..af24cc17d1 100644 --- a/compiler/jsoo/dune +++ b/compiler/jsoo/dune @@ -7,6 +7,4 @@ (= %{profile} browser)) (flags (:standard -w +a-4-9-40-42-44-45)) - (libraries core syntax ml js_of_ocaml) - (preprocess - (pps js_of_ocaml-ppx))) + (libraries core syntax ml js_of_ocaml)) diff --git a/compiler/jsoo/jsoo_playground_main.ml b/compiler/jsoo/jsoo_playground_main.ml index 9c1ee69d1b..8cf7a567d6 100644 --- a/compiler/jsoo/jsoo_playground_main.ml +++ b/compiler/jsoo/jsoo_playground_main.ml @@ -675,8 +675,10 @@ end let () = Js.export "rescript_compiler" - (object%js - val api_version = api_version - val version = Bs_version.version - method make = Export.make () - end) + Js.Unsafe.( + obj + [| + ("api_version", inject @@ Js.string api_version); + ("version", inject @@ Js.string Bs_version.version); + ("make", inject @@ Export.make); + |]) diff --git a/rescript.opam b/rescript.opam index fe8dd954c8..efb475eb5f 100644 --- a/rescript.opam +++ b/rescript.opam @@ -33,7 +33,6 @@ depends: [ # Test dependencies that would be broken on Windows runners "js_of_ocaml" {os != "win32" & with-test & = "6.0.1"} - "js_of_ocaml-ppx" {os != "win32" & with-test & = "6.0.1"} "wasm_of_ocaml-compiler" {os != "win32" & with-test & = "6.0.1"} ] pin-depends: [ diff --git a/rescript.opam.template b/rescript.opam.template index e0345025a8..ffc4578a2d 100644 --- a/rescript.opam.template +++ b/rescript.opam.template @@ -11,7 +11,6 @@ depends: [ # Test dependencies that would be broken on Windows runners "js_of_ocaml" {os != "win32" & with-test & = "6.0.1"} - "js_of_ocaml-ppx" {os != "win32" & with-test & = "6.0.1"} "wasm_of_ocaml-compiler" {os != "win32" & with-test & = "6.0.1"} ] pin-depends: [