Closed
Description
The following causes an "illegal dynamic reference: autoImport" error to be reported by sbt:
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.7.0-SNAPSHOT"
If I inline the body of the %%%
macro, everything works fine:
libraryDependencies += {
import org.scalajs.sbtplugin._
val cross = {
if (ScalaJSPlugin.autoImport.jsDependencies.?.value.isDefined)
ScalaJSCrossVersion.binary
else
CrossVersion.binary
}
impl.ScalaJSGroupID.withCross("org.scala-js", "scalajs-dom", cross) % "0.7.0-SNAPSHOT"
}