This is a pretty common question in Discord chat and I hate to answer it everytime so let’s me type it once and refer to it later.
Should I?
Include
If you’re in the process in introducing ReasonML/Bucklescript into an existing Javascript/Typescript/Flow codebase and you don’t want to change your build process. Everyone who’s not working with ReasonML shouldn’t notice a thing.
The downside of this approach is git conflicts. It’s a real pain.
Exclude
- You’re starting a project from scratch with ReasonML.
- You let everyone working on the project know about it. They must install bs-platform for compiling .re files to *.bs.js
If I’m releasing a library for ReasonML consumers, should I?
Exclude it please.
cc @chenglou Please make this a wiki so others could edit it.