I’m currently trying to build a GCP Cloud Function using ReScript.
The current problem is that it is not possible to import BuckleScript dependencies.
It’s because GCP runs
yarn install again when the hash of
node_modules have been changed after running the build script(specified with
gcp-build npm script), results in clearing all the built
.bs.js files for the dependencies.
Therefore I tried to move all the build output to specific directory like
dist/ but haven’t find any
bsconfig options for it. Is there any? Or is it impossible? In that case I probably should write a transformer to move all the
.bs.jses and replace all the
.bs.jses… but that sounds terrible.