(executable
 (name helper)
 (modes js)
 (js_of_ocaml
  (compilation_mode whole_program)
  (flags --no-extern-fs --target-env=browser))
 (libraries support yojson))

(rule
 (target helper.js)
 (deps babel.config.json bundle.sh helper.bc.js)
 (action
  (run ./bundle.sh helper.bc.js)))
