Skip to content

Commit

Permalink
Fixed #1665: Default to ECMAScript 2015 for ScajaJS 1.x (#1666)
Browse files Browse the repository at this point in the history
Pull request: #1666

Co-authored-by: Tobias Roeser <le.petit.fou@web.de>
  • Loading branch information
davesmith00000 and lefou committed Jan 11, 2022
1 parent 815b9b0 commit 4535159
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scalajslib/src/ScalaJSModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ trait ScalaJSModule extends scalalib.ScalaModule { outer =>

def moduleKind: T[ModuleKind] = T { ModuleKind.NoModule }

def useECMAScript2015: T[Boolean] = false
def useECMAScript2015: T[Boolean] = T {
!scalaJSVersion().startsWith("0.")
}

@internal
override def bspBuildTargetData: Task[Option[(String, AnyRef)]] = T.task {
Expand Down

0 comments on commit 4535159

Please sign in to comment.