Hello, I want to include a a project module (Helper.res) in all my project modules. I use this in
"bsc-flags": [ "-open Helper" ]
It works fine, but when I modify the Helper.res file, I get an error, because it try to include itself…
A workaround is removing the flag in
bsconfig.js, compile, and put it again, whenever the file is modified.
rescript: [38/60] src/Helper.cmj FAILED: src/Helper.cmj We've found a bug for you! command line The module or file Helper can't be found. - If it's a third-party dependency: - Did you list it in bsconfig.json? - Did you run `rescript build` instead of `rescript build -with-deps` (latter builds third-parties)? - Did you include the file's directory in bsconfig.json? FAILED: cannot make progress due to previous errors.
Is there a better way ?