File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1885,6 +1885,14 @@ object Build {
1885
1885
.exists(overwrittenSources.contains))
1886
1886
1887
1887
},
1888
+ // Drop all the tasty files and the classfiles when packaging bu the scalajs exclusive classes
1889
+ // More info here: https://github.com/scala-js/scala-js/issues/5217
1890
+ Compile / packageBin / mappings := {
1891
+ (Compile / packageBin / mappings).value.filter(file =>
1892
+ file._2.endsWith(" .sjsir" )
1893
+ || file._2.endsWith(" UnitOps.tasty" ) || file._2.endsWith(" UnitOps.class" ) || file._2.endsWith(" UnitOps$.class" )
1894
+ || file._2.endsWith(" AnonFunctionXXL.tasty" ) || file._2.endsWith(" AnonFunctionXXL.class" ))
1895
+ },
1888
1896
libraryDependencies += (" org.scala-js" %% " scalajs-library" % scalaJSVersion).cross(CrossVersion .for3Use2_13),
1889
1897
libraryDependencies += (" org.scala-js" % " scalajs-javalib" % scalaJSVersion),
1890
1898
// Project specific target folder. sbt doesn't like having two projects using the same target folder
You can’t perform that action at this time.
0 commit comments