Skip to content

Commit 9c22ce7

Browse files
authored
Merge pull request #11820 from dotty-staging/sjs-no-dependency-on-nonbootstrapped-self
Fix #11709: Do not depend on non-boostrapped Scala.js library.
2 parents c3dccd6 + 6efdefc commit 9c22ce7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

project/Build.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ object MyScalaJSPlugin extends AutoPlugin {
3838
override def projectSettings: Seq[Setting[_]] = Def.settings(
3939
commonBootstrappedSettings,
4040

41+
/* #11709 Remove the dependency on scala3-library that ScalaJSPlugin adds.
42+
* Instead, in this build, we use `.dependsOn` relationships to depend on
43+
* the appropriate, locally-defined, scala3-library-bootstrappedJS.
44+
*/
45+
libraryDependencies ~= {
46+
_.filter(!_.name.startsWith("scala3-library_sjs1"))
47+
},
48+
4149
// Replace the JVM JUnit dependency by the Scala.js one
4250
libraryDependencies ~= {
4351
_.filter(!_.name.startsWith("junit-interface"))

0 commit comments

Comments
 (0)