Open ELLIOTTCABLE opened 5 years ago
@ELLIOTTCABLE Thanks for the issues! At this point, I don't use reason anymore, so I probably won't be able to look at these issues in a timely manner. If you are able to submit PRs, I would be happy to review and merge them, however!
@mike-engel If it pans out for us, I'm sure I will!
Out of curiosity, any comment on why that panned out that way for you? I'd love to know your experiences! (I'm on the various Discords, and Freenode, as well, if you want to chat.)
@ELLIOTTCABLE It's pretty simple really :). I decided to use Reason for a small project of mine (barnacal) and after using it for that, decided I was just more comfortable with react + typescript ¯_(ツ)_/¯
When we have an
.ml
file adjacent to a consuming.js
file (see #8 for context), we usually import as follows:This functions, as the
bsb
-compiled output is placed inblahWidget.bs.js
with the config described in #8.Unfortunately, if we try and use
babel-plugin-bucklescript
's path-handling, the path becomes fully-resolved and gets hardcoded into the compiled output:Obviously, we don't want to publish that path to npm!