While trying to avoid an issue described in How to provide a stub implementation of JDK classes (like java.awt) in a Scala.js project?, I came up with a solution of using a diff