bbaldino
11/09/2020, 8:14 PMbbaldino
11/09/2020, 8:18 PMRobert Jaros
11/09/2020, 8:56 PMbbaldino
11/09/2020, 8:56 PMexternal val
) thoughRobert Jaros
11/09/2020, 9:02 PMbbaldino
11/09/2020, 9:03 PMRobert Jaros
11/09/2020, 9:03 PMbbaldino
11/09/2020, 9:03 PMbbaldino
11/09/2020, 9:04 PMhighcharts
in there, so something seems wrong there.bbaldino
11/09/2020, 9:05 PMRobert Jaros
11/09/2020, 9:06 PMRobert Jaros
11/09/2020, 9:06 PMrequire()
bbaldino
11/09/2020, 9:07 PM@file:JsModule("highcharts")
counts as use?bbaldino
11/09/2020, 9:07 PMRobert Jaros
11/09/2020, 9:07 PMbbaldino
11/09/2020, 9:08 PM@file:JsModule("highcharts")
should compile to some kind of require
line?bbaldino
11/09/2020, 9:08 PMRobert Jaros
11/09/2020, 9:11 PMchart.js
.bbaldino
11/09/2020, 9:13 PMRobert Jaros
11/09/2020, 9:14 PMbbaldino
11/09/2020, 9:14 PMDaan
11/13/2020, 10:36 PMimplementation(npm("@babylonjs/core", "^4.2.0", generateExternals = true))
• Copy generated externals from build/externals to somewhere else
• Remove generateExternals = true from the dependency (otherwise Dukat will always generate broken external declarations that I might import accidentally)
• Add a package my.app.externals.babylon with a file called babylon.kt
• Add these annotations to the file: @file:JsModule("@babylonjs/core") and @file:JsNonModule
• Copy things from the externals files generated by Dukat and fix them/modify them as I go
• Refer to Babylon.js docs and source code to figure out how some things need to be modeledbbaldino
11/13/2020, 10:44 PMbbaldino
11/13/2020, 10:44 PMDaan
11/13/2020, 10:46 PMDaan
11/13/2020, 10:48 PMdynamic
here and there to deal with really gnarly TS typesbbaldino
11/13/2020, 10:49 PMbbaldino
11/13/2020, 10:49 PMbbaldino
11/13/2020, 10:49 PMbbaldino
11/13/2020, 10:56 PMjs("{....}")
, right?bbaldino
11/13/2020, 10:56 PMDaan
11/14/2020, 2:27 PMDaan
11/14/2020, 2:28 PMDaan
11/14/2020, 2:29 PM