I have two classes with the same name A having different package one as: -
xxx.yyy.v1.A
and second as:-
xxx.yyy.v2.A
I have to use @JSExportTopLevel in scala-js (1.1.1).
What is the standard way of accomplishing this?
Previously in scala-js (0.6.x), I used something like this: -
@JSExportTopLevel("xxx.yyy.v1.A")
and
@JSExporttopLevel("xxx.yyy.v2.A")
but with scala-js (1.1.1 ), it is now removed. Exporting under a namespace (deprecated)
Note:- I am facing this issue in scala-js upgrade 0.6.x -> 1.x.x
My configuration: -
scala -> 2.13.3, jvm -> 14, sbt -> 1.3.13, scala-js -> 1.x.x