aimozg
02/03/2017, 1:44 AM@file:JsModule
which I thought was related to what was exported and under which name.@file:JsModule("kjs3")
fun demofun():Double {
return Math.PI
}
Error:(3, 1) Kotlin: Cant put non-external declarations in file marked with {0} annotation
Error:(4, 9) Kotlin: Unresolved reference: MathIntelliJ IDEA 2017.1 EAP
Build #IU-171.2613.7, built on January 25, 2017
Information: Kotlin: Kotlin Compiler version 1.1.0-beta-38
@file:JsModule("modulename")
hackerham
02/03/2017, 4:08 AMIn my attempts to befriend Typescript, webpack, and Kotlinwhy people even use webpack?
bashor
02/03/2017, 1:33 PMJsModule
affects only external declarations, so file annotated by it can’t contain non-external declarations