pabl0rg
03/31/2020, 3:29 PMDominaezzz
03/31/2020, 3:31 PMDominaezzz
03/31/2020, 3:31 PMCasey Brooks
03/31/2020, 3:32 PMbasher
03/31/2020, 3:32 PMdiesieben07
03/31/2020, 3:33 PMDominaezzz
03/31/2020, 3:33 PMdiesieben07
03/31/2020, 3:35 PMtype Foo = "bar" | "baz" | true
simply cannot be represented in Kotlin at the momentdiesieben07
03/31/2020, 3:37 PMDominaezzz
03/31/2020, 3:37 PMDominaezzz
03/31/2020, 3:37 PMdiesieben07
03/31/2020, 3:37 PMdiesieben07
03/31/2020, 3:37 PMCasey Brooks
03/31/2020, 3:38 PMnpm()
dependency, it will run Dukat automaticallydiesieben07
03/31/2020, 3:38 PMdiesieben07
03/31/2020, 3:39 PMCasey Brooks
03/31/2020, 3:47 PMpackage.json
, which means any other tools need to generate that file to work with itdiesieben07
03/31/2020, 3:52 PMtsc foo.ts
generates foo.js
. It does _one thing_: Compile typescript to Javascript. It doesn't bundle files together.
This allows it to integrate perfectly with things like babel (which can just read the generated Javascript) or Webpack (if you want to generate stuff for the web) or node.js (which will just use the generated js files).
Kotlin instead insists on always generating one giant JS file for all your code inclusive of libraries. This is just strange.bashor
03/31/2020, 7:14 PMbashor
03/31/2020, 7:16 PMdiesieben07
03/31/2020, 7:17 PMbashor
03/31/2020, 7:18 PMdiesieben07
03/31/2020, 7:19 PMdiesieben07
03/31/2020, 7:20 PMbashor
03/31/2020, 7:26 PMdiesieben07
03/31/2020, 7:27 PMbashor
03/31/2020, 7:29 PMdiesieben07
03/31/2020, 7:30 PMdynamic
😉 But this is just me ranting from an outside perspective. I wouldn't want to be in your shoes