diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2019-06-13 19:05:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-13 19:05:57 +0200 |
commit | 4bbfbf95dbfc0a051837287abc0ee43bf18de4b9 (patch) | |
tree | 0126de264ba7d0be49ee462f7ed7178e29dca14c /contrib/bloop/src/mill.contrib.bloop | |
parent | 07b3e0605a10ced76c953c383c2dc186c511d763 (diff) | |
download | mill-4bbfbf95dbfc0a051837287abc0ee43bf18de4b9.tar.gz mill-4bbfbf95dbfc0a051837287abc0ee43bf18de4b9.tar.bz2 mill-4bbfbf95dbfc0a051837287abc0ee43bf18de4b9.zip |
Allow configuration of JSEnv used for Scala.js tests and runs (#628)
* .
* .
* .
Diffstat (limited to 'contrib/bloop/src/mill.contrib.bloop')
-rw-r--r-- | contrib/bloop/src/mill.contrib.bloop/BloopImpl.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/bloop/src/mill.contrib.bloop/BloopImpl.scala b/contrib/bloop/src/mill.contrib.bloop/BloopImpl.scala index 0db3b7dc..ac06bbd5 100644 --- a/contrib/bloop/src/mill.contrib.bloop/BloopImpl.scala +++ b/contrib/bloop/src/mill.contrib.bloop/BloopImpl.scala @@ -8,7 +8,7 @@ import mill.api.Loose import mill.define.{Module => MillModule, _} import mill.eval.Evaluator import mill.scalajslib.ScalaJSModule -import mill.scalajslib.api.ModuleKind +import mill.scalajslib.api.{JsEnvConfig, ModuleKind} import mill.scalalib._ import mill.scalanativelib.ScalaNativeModule import mill.scalanativelib.api.ReleaseMode @@ -226,7 +226,10 @@ class BloopImpl(ev: () => Evaluator, wd: Path) extends ExternalModule { outer => case ModuleKind.CommonJSModule => Config.ModuleKindJS.CommonJSModule }, - emitSourceMaps = m.nodeJSConfig().sourceMap, + emitSourceMaps = m.jsEnvConfig() match{ + case c: JsEnvConfig.NodeJs => c.sourceMap + case _ => false + }, jsdom = Some(false), ), mainClass = module.mainClass() |