Skip to content

Commit 2c6bff2

Browse files
authored
Merge pull request #1083 from dispalt/dan/fix-source-map-uri
Point at library subfolder
2 parents ba88050 + c25eee7 commit 2c6bff2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/changelog/next.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
* Scala.js upgraded to 1.10.0
55
* microlibs upgraded to 4.1.0
66
* Scala 3 upgraded to 3.1.2
7+
* Fixed the source map uri to point to the correct location

library/project/Lib.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ object Lib {
105105
val a = p.base.toURI.toString.replaceFirst("[^/]+/?$", "")
106106
val g = s"https://raw.githubusercontent.com/japgolly/$ghProject"
107107
val flag = if (isDotty) "-scalajs-mapSourceURI" else "-P:scalajs:mapSourceURI"
108-
s"$flag:$a->$g/v$ver/" :: Nil
108+
s"$flag:$a->$g/v$ver/library/" :: Nil
109109
}
110110
}
111111
)
@@ -179,4 +179,4 @@ object Lib {
179179
publish / skip := ((publish / skip).value || disable.value),
180180
)
181181
}
182-
}
182+
}

0 commit comments

Comments
 (0)