Configuring the `wasmJs` target like this ```wasmJ...
# webassembly
e
Configuring the
wasmJs
target like this
Copy code
wasmJs {
    nodejs()
    useCommonJs()

    binaries.library()
    generateTypeScriptDefinitions()
}
I'd expect the .js thin wrapper to be generated using CommonJS. Instead I see it always generates ESM. Is this going to be fixed, or the CommonJS option isn't supposed to work at all?
s
Only ESM is supposed to be supported.
useCommonJs
accidentally got here from a K/JS plugin and is ignored.
e
Yup noticed the Wasm DSL extends the JS one. Maybe it makes sense to override the function and throw an error?
1