What happens if we try to use any node.js module? Will it just not transpile to front-end JS?
Chilli
05/12/2020, 9:56 AM
Or not run?
g
gildor
05/12/2020, 9:59 AM
there is no “front-end js” in Kotlin
gildor
05/12/2020, 10:00 AM
it will fail on runtime because module is not found
c
Chilli
05/12/2020, 10:00 AM
Though the JS tests also run on the browser, don't they?
g
gildor
05/12/2020, 10:01 AM
I mean that Kotlin JS can be used as for browser and for node, it includes some external declarations for browser, they will not work on runtime of course, but if you use them, they will be compiled