Closed ebruchez closed 1 year ago
If we switch all to ESVersion.ES2018
, which we can do now, we only need one solution. In JavaScript, I can now do it. However our antiquated sbt-uglify
is unable to process JavaScript containing class
es. So I wondered whether this could be written in Scala.js, and the answer is "yes" for the subclassing (via hack), but calling super.init()
causes a compiler error. See https://github.com/scala-js/scala-js/issues/4801.
So for now either:
sbt-uglify
.For now, chose JavaScript solution.
Getting error:
In offline, we use
ESVersion.ES2018
for "improved regular expressions", and so our subclassing code in xforms.js fails.