diff --git a/compiler/bin-js_of_ocaml/build_fs.ml b/compiler/bin-js_of_ocaml/build_fs.ml index 16ac22a23d..3d20db9454 100644 --- a/compiler/bin-js_of_ocaml/build_fs.ml +++ b/compiler/bin-js_of_ocaml/build_fs.ml @@ -61,6 +61,7 @@ function jsoo_create_file_extern(name,content){ } |} in + Config.set_target `JavaScript; let fragments = Linker.Fragment.parse_string code in Linker.load_fragments ~target_env:Isomorphic ~filename:"" fragments; Linker.check_deps ();