spand
08/08/2017, 2:59 PMbashor
08/08/2017, 7:07 PMspand
08/09/2017, 6:59 AMkonsoletyper
08/09/2017, 9:46 AMimport
directive is, indeed, does not act as require
in CommonJS. However, there's external
modifier together with @JsModule
annotation that's designed to interoperate with CommonJS. See http://kotlinlang.org/docs/reference/js-modules.htmlspand
08/09/2017, 10:01 AM@JsModule
work on try.kotlinlang.org ?spand
08/09/2017, 10:02 AMkonsoletyper
08/09/2017, 12:21 PM@JsModule
won't work in try.kotlinlang.org, since such a simple tool can't provide a full frontend stack there.