Open chenglou opened 6 years ago
I'm thinking conditional compilation to both platforms. cc @bsansouci
Actually, does bs' cppo work on reason files?
bsb-native supports this using matchenv, basically swaps the implementation of a module depend on the targeted backend.
@chenglou No bs' cppo can't work on reason because it's not valid syntax. If we can make refmt parse #if
style things, that'd be amazing (I want that) lol
I though the cppo pass comes before the parser pass?
yeah it's definitely not valid ocaml
would this delegate to node's
fs
or native, respectively?