Skip to content

Commit 895b083

Browse files
sjrdmichelou
authored andcommitted
Fix scala#11709: Do not depend on non-boostrapped Scala.js library.
1 parent cbc9eac commit 895b083

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
@@ -46,6 +46,14 @@ abstract class DottyJSPlugin(settings: Seq[Setting[_]]) extends AutoPlugin {
4646
_.filter(!_.name.startsWith("scala3-library_sjs1"))
4747
},
4848

49+
/* #11709 Remove the dependency on scala3-library that ScalaJSPlugin adds.
50+
* Instead, in this build, we use `.dependsOn` relationships to depend on
51+
* the appropriate, locally-defined, scala3-library-bootstrappedJS.
52+
*/
53+
libraryDependencies ~= {
54+
_.filter(!_.name.startsWith("scala3-library_sjs1"))
55+
},
56+
4957
// Replace the JVM JUnit dependency by the Scala.js one
5058
libraryDependencies ~= {
5159
_.filter(!_.name.startsWith("junit-interface"))

0 commit comments

Comments
 (0)