Skip to content

Commit

Permalink
fix scala 3 js issue (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgfraser authored Dec 11, 2022
1 parent 9cb2c3f commit 4e444b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ lazy val zioQuery = crossProject(JSPlatform, JVMPlatform)
lazy val zioQueryJS = zioQuery.js
.settings(dottySettings)
.settings(scalaJSUseMainModuleInitializer := true)
.settings(
scalacOptions ++= {
if (scalaVersion.value == ScalaDotty)
Seq("-scalajs")
else
Seq.empty
}
)

lazy val zioQueryJVM = zioQuery.jvm
.settings(dottySettings)
Expand Down

0 comments on commit 4e444b0

Please sign in to comment.