I'm trying out the ESM module support and there se...
# javascript
f
I'm trying out the ESM module support and there seems to be a mismatch between the real file extensions (
mjs
) and the extension used on the
package.json
file. Some more info:
Copy code
js(IR) {
        ...
        useEsModules()
        ...
}
After running the
jsBrowserDistribution
task I get a
build/js/packages/<module-name>
folder. It contains a
package.json
with `"main"*:* "kotlin/<module-name>.js"`*, however the file in the
kotlin
folder is ``<module-name>.mjs`* (i.e.
mjs
and not
js
).
t
Works fine in Kotlin
1.8.20
Will be fixed in Kotlin 1.9 probably
f
I'm using 1.8.22
t
Pill - use Kotlin
1.8.20