Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit a730276

Browse files
committed
Simplify scalacOptions for Scala.js 0.6
1 parent 5ecd436 commit a730276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/MySettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ object MySettings {
5757

5858
lazy val commonScalaJsSettings = Seq(
5959
scalacOptions ++= Seq("-P:scalajs:sjsDefinedByDefault").filter { _ =>
60-
Option(System.getenv("SCALAJS_VERSION")).filter(_.nonEmpty).getOrElse("1.1.0").startsWith("0.6.")
60+
Option(System.getenv("SCALAJS_VERSION")).exists(_.startsWith("0.6."))
6161
},
6262
scalaJSLinkerConfig ~= {
6363
_.withModuleKind(ModuleKind.CommonJSModule)

0 commit comments

Comments
 (0)