code: function compileFileSync(
    buildDir /*: string */,
    moduleType /*: BsModuleFormat | 'js' */,
    path /*: string */,
  ) /*: string */ {
    try {
      runBuildSync(buildDir)
    } catch (e) {
      throw utils.processBsbError(e.output.toString())
    }
  
    const res = readFileSync(path)
    return utils.transformSrc(moduleType, res.toString())
  }
docs: Compiles a Reason file to JS sync