Skip to content

Commit

Permalink
Switch ScalaJS source maps from local to globally reachable paths, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sirthias committed Jan 5, 2024
1 parent bea5427 commit b4bbcbf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,9 @@ lazy val commonSettings = Seq(
"-Xmax-inlines:128", // required for compiling upickle benchmarks
// "-Wunused:all" // disabled until https://github.com/lampepfl/dotty/issues/17315 is resolved
) ++ {
val dir = baseDirectory.value
if (dir.name == ".js") {
val localSourcesPath = baseDirectory.value.toURI
val remoteSourcesPath = s"https://raw.githubusercontent.com/sirthias/borer/${git.gitHeadCommit.value.get}/"
s"-scalajs-mapSourceURI:${dir.getParentFile.toURI}->$remoteSourcesPath" :: Nil
} else Nil
val local = (LocalRootProject / baseDirectory).value.toURI
val remote = s"https://raw.githubusercontent.com/sirthias/borer/${git.gitHeadCommit.value.get}/"
s"-scalajs-mapSourceURI:$local->$remote" :: Nil
},
Compile / console / scalacOptions ~= (_ filterNot (o => o.contains("warn") || o.contains("Xlint"))),
Test / console / scalacOptions := (Compile / console / scalacOptions).value,
Expand Down

0 comments on commit b4bbcbf

Please sign in to comment.