I can create, compile and run a bucklescript project with the following commands
bsb -init new-project
cd new-project
npm run build
node ./src/demo.bs.js
However, I'd like to use the definitions in the generated demo.bs.js
from a script embedded in an html file. The generated js contains a call to require
which doesn't work in the browser. I could probably make it work with browserify or something, but I guess there must a proper way to set up a bucklescript project to target web apps, right?