js_of_ocaml icon indicating copy to clipboard operation
js_of_ocaml copied to clipboard

Dynamically link runtime js files

Open gpetiot opened this issue 2 years ago • 0 comments

Hi, I'm taking over the work initiated by @jonludlam to make modules executables in toplevel (for the documentation on ocaml.org).

We were wondering if there was a way of dynamically linking the runtime.js files of some packages (eg. https://github.com/janestreet/base/blob/master/src/runtime.js) when initializing the toplevel, instead of when building the toplevel. It would be very nice to not have to build a new toplevel for each package.

I had a look at https://ocsigen.org/js_of_ocaml/latest/manual/runtime-files but it only mentions the build, and I didn't find anything in the jsoo cmdline or the API. Is that something possible? or is there an alternative? thanks.

(addressed by #1509)

gpetiot avatar Sep 06 '23 14:09 gpetiot