Skip to content

Commit c7201cd

Browse files
committed
Add missing mapSourceURI for scala-library-sjs project
1 parent 8fd3005 commit c7201cd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

project/Build.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,6 +2156,16 @@ object Build {
21562156
Compile / scalacOptions += "-Yno-stdlib-patches",
21572157
Compile / scalacOptions += "-Yexplicit-nulls",
21582158
Compile / scalacOptions += "-scalajs",
2159+
// Configure the source maps to point to GitHub for releases
2160+
Compile / scalacOptions ++= {
2161+
if (isRelease) {
2162+
val baseURI = (LocalRootProject / baseDirectory).value.toURI
2163+
val dottyVersion = version.value
2164+
Seq(s"-scalajs-mapSourceURI:$baseURI->$dottyGithubRawUserContentUrl/$dottyVersion/")
2165+
} else {
2166+
Nil
2167+
}
2168+
},
21592169
// Packaging configuration of the stdlib
21602170
Compile / packageBin / publishArtifact := true,
21612171
Compile / packageDoc / publishArtifact := false,

0 commit comments

Comments
 (0)