I am trying to create external object with the following reason code:
[@bs.new] [@bs.module "winston.transports"] external newConsole: config => t = "Console";
when this is transpiled to js, I get:
var WinstonTransports = require("winston.transports");
which does not work at all, such thing can’t be required. The code I need on js should be like:
var Transports = require("winston").transports;
Is it possible to use external stuff from deeper inside external modules?