hhugo
hhugo
You can then remove the previous fix (using IIFE) used to capture mutable variable
Looking at your CI building the js file, I see ``` (cd _build/default/src/js && /home/opam/.opam/4.14.1/bin/js_of_ocaml -o interactive_js.bc.js filesystem.js interactive_js.bc-for-jsoo) Warning: your program contains effect handlers; you should probably run js_of_ocaml...
The "4.14.1" path fragment was misleading. I can see the compiler is upgraded to 5.1.1 before. Looking again, saturn_lockfree depends on `domain_shims` which unconditionally depends on `threads` (see https://gitlab.com/gasche/domain-shims/-/blob/trunk/lib/dune?ref_type=heads). I...
I thinks there is a misunderstanding here. This issue was about being able to `import`/`export` inside js stubs (e.g. in https://github.com/ocsigen/js_of_ocaml/blob/master/runtime/compare.js). In particular, using `export` instead of using magic comment...
Would you be able to contribute a PR ?
@gpetiot, can you describe the build and loading process a bit. - Is the toplevel built using whole program compilation or separate compilation - How do you load new libraries...
@gpetiot, it would be much easier to validate this workflow with a simpler setup (E.g. Not using web workers)
The `javascript` predicate was a hack that predates dune. Recent version of dune stopped emitting it very recently (dune.3.10 maybe). To get the path of all js files for a...
@vouillon, are you using an unreleased version of dune by any chance ? It is the unreleased dune.3.11 https://github.com/ocaml/opam-repository/pull/24510 that stop emitting the `javascript` predicate.
@gpetiot, have you made any progress ?