It seems the standard best practice for reason packages is to include
bs-platform in the
peerDependencies in each specific project that calls the
Uncaught Error: Cannot find module 'bs-platform/lib/js/caml_builtin_exceptions.js' from 'reason-react/src/ReactDOMRe.js'
My two current hacks to get the system to work are:
- Make a call to the specific
bs-platformJS file in my code that does include
- Manually modify the
package.jsonin the reason packages in
bs-platform, why would
bs-platform not be listed in
peerDependencies? Is there a better way to ensure that the
bs-platform runtime JS is included in the build?