Hey folks. Came across this -> https://github.com/rescript-lang/std
While I am rummaging through code, I come across errors like the following:
/Volumes/SSD/Github/bs-easy-format/node_modules/.pnpm/bs-platform@9.0.2/node_modules/bs-platform/lib/js/caml_external_polyfill.js:16
throw new Error(s + " not polyfilled by BuckleScript yet\n")
^
Error: caml_ml_output_bytes not polyfilled by BuckleScript yet
at Object.resolve (/Volumes/SSD/Github/bs-easy-format/node_modules/.pnpm/bs-platform@9.0.2/node_modules/bs-platform/lib/js/caml_external_polyfill.js:16:11)
at Object.output (/Volumes/SSD/Github/bs-easy-format/node_modules/.pnpm/bs-platform@9.0.2/node_modules/bs-platform/lib/js/pervasives.js:253:33)
at Object.output_buffer (/Volumes/SSD/Github/bs-easy-format/node_modules/.pnpm/bs-platform@9.0.2/node_modules/bs-platform/lib/js/buffer.js:330:21)
at to_channel$1 (/Volumes/SSD/Github/bs-easy-format/src/easy_format.bs.js:719:19)
at Object.to_stdout$1 [as to_stdout] (/Volumes/SSD/Github/bs-easy-format/src/easy_format.bs.js:723:10)
at Object.<anonymous> (/Volumes/SSD/Github/bs-easy-format/test/test_easy_format.bs.js:326:21)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
Would using https://github.com/rescript-lang/std/blob/master/lib/js/caml_external_polyfill.js be a solution to this?
If so how would you use in your lib?
Thank you.