-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Switch to use nodeJsEnv as default jsEnv to build scala.js #954
Conversation
By default, scala.js compiler uses `Rhino` as the js environment. But it usually requires a lot of memory and often lead to OOM. This PR replace the default to a node.js one that should be much faster and slimer.
5784a6f
to
dcc292f
Compare
Current coverage is
|
Thanks @ngbinh! Forgive my ignorance about scala.js: will this affect users Cats scala.js users, or does this only change the environment that our JS tests run in? |
The batchMode should help reduce the memory requirement to compile scala.js code as per scala-js/scala-js#1788 (comment) Implementation details: botBuild is a sbt setting that will be turned on on travisCi so that it will not interfere with local dev experience.
@ceedubs it shouldn't affect scala.js Cats users. It only used a different jsEnv. Scala.js libraries are actually compiled in |
Hurrah! 👍 |
💯 |
Hmm any ideas why this build is still failing? #941 |
commented in #941. There is one more thing I'd like to do is upgrading scala.js plugin. |
By default, scala.js compiler uses
Rhino
as the js environment. But itusually requires a lot of memory and often lead to OOM. This PR replace
the default to a node.js one that should be much faster and slimer.