Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

JS API to compile ReScript to JS

$
0
0

You’re close! You need to add each folder that can contain ReScript files to the bsc command via -I and pointing to the source folder, but in lib/bs. So if I have a folder called src/bindings in my project, I’d want to add this to bsc:

 -I /Users/zth/git/whatever/lib/bs/src/bindings

Then you need to do something similar for any library you add. These things are slightly complicated and mostly something the build system creates for you. IIRC @jfrolich you did something for outputting the relevant bsc command for a project with Rewatch, or am I misremembering that? Maybe that could be of help here.


Viewing all articles
Browse latest Browse all 2592

Trending Articles