slogging icon indicating copy to clipboard operation
slogging copied to clipboard

slogging winston does not work under webpack bundled scalajs program

Open aappddeevv opened this issue 8 years ago • 1 comments

The issue appears to be in the slogging-winston:

 val winston = Dynamic.global.require("winston")

Under webpack, winston will not load under the global variable.

aappddeevv avatar Jun 29 '17 18:06 aappddeevv

slogging 0.5.3 now supports loading the winston backend correctly as a module (require("winston")), see #25 (this requires scalaJSModuleKind := ModuleKind.CommonJSModule to be set in your build.sbt). This should also help with bundlers.

jokade avatar Jul 11 '17 16:07 jokade