Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slogging winston does not work under webpack bundled scalajs program #23

Open
aappddeevv opened this issue Jun 29, 2017 · 1 comment
Open

Comments

@aappddeevv
Copy link

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 aappddeevv changed the title slogging does not work under webpack bundled scalajs program slogging winston does not work under webpack bundled scalajs program Jul 9, 2017
@jokade
Copy link
Owner

jokade commented Jul 11, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants