Stan van der Bend
01/14/2023, 3:58 PMturansky
01/15/2023, 7:54 PMcommonjs
format for bundle, produced by Kotlin/JS
b. Activate commonjs
for Vite, which isn’t enabled by default
2. ESM
a. Use commonjs
format for bundle, produced by Kotlin/JS
b. Convert commonjs
bundle to ESM via custom Gradle plugin
c. Vite configuration isn’t requiredNick Williams
06/08/2023, 2:03 PMturansky
06/08/2023, 5:44 PMNick Williams
06/08/2023, 5:50 PMturansky
06/08/2023, 5:53 PMStan van der Bend
06/18/2023, 1:49 PMNick Williams
06/18/2023, 3:00 PMapatrida
09/21/2023, 12:18 AMplugins {
kotlin("js") version "1.8.20-RC2"
}
kotlin {
js(IR) {
useEsModules()
browser()
}
}
from here
https://youtrack.jetbrains.com/issue/KT-12784/JS-generate-ES2015-compatible-modules