bsansouci / bucklescript

A backend for the OCaml compiler which emits JavaScript.
Other
87 stars 4 forks source link

`compiler-libs` not available when compiling to js #3

Open IwanKaramazow opened 5 years ago

IwanKaramazow commented 5 years ago

Bsconfig: "ocaml-dependencies": ["compiler-libs"]

When compiling to backend js, the compiler-lib modules don't seem to be available when included in the bsconfig.

bsansouci commented 5 years ago

Mmmmh nice find. Any particular reason you want them in JS and not just for native (like when building a ppx)? Or would you like us to ignore the dep when building to JS?

IwanKaramazow commented 5 years ago

I was doing some parsing related experiments, somehow wrote an infinite loop and thought: why not compile everything to js and drop in the chrome node debugger? This experiment also needs to run in the browser.

Low-prio, I can always copy the compiler-libs myself from ocaml. Update: copy-pasting is harder than I thought…