Marks the annotated class or object as imported from another JS module.
Intuitively, this corresponds to the following ECMAScript import
directive:
import { <name> as AnnotatedClassOrObject } from <module>
To import the default export of a module, use JSImport.Default as name.
@JSImport is not compatible with the jsDependencies mechanism offered
by the Scala.js sbt plugin. You are responsible for resolving and/or
bundling the JavaScript modules that you are importing using other
mechanisms.
Marks the annotated class or object as imported from another JS module.
Intuitively, this corresponds to the following ECMAScript import directive:
import { <name> as AnnotatedClassOrObject } from <module>
To import the default export of a module, use
JSImport.Default
asname
.@JSImport
is not compatible with thejsDependencies
mechanism offered by the Scala.js sbt plugin. You are responsible for resolving and/or bundling the JavaScript modules that you are importing using other mechanisms.