File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments