Turn the Scala.js compiler into a compiler plugin.