Hi. What is the difference between using `useEsMod...
# javascript
r
Hi. What is the difference between using
useEsModules()
and
kotlinOptions { target = "es2015" }
?
👍 1
a
useEsModules()
turns on ESM module system, but not other ES2015 features (such as generators, ES-classes, etc).
kotlinOptions { target = "es2015" }
turns on all the supported ES2015 features (generators, classes, ES modules) and in future we are going to also add
bigint
usage,
let/const
and many more modern features.
thank you color 2