[Wasm] Use ModuleKind.ES
As the only JS-interop module kind Wasm supports
This commit is contained in:
committed by
Space Team
parent
ca31307941
commit
80e07d628b
@@ -797,6 +797,10 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
|
||||
)
|
||||
moduleKind = ModuleKind.PLAIN
|
||||
}
|
||||
if (arguments.wasm) {
|
||||
// K/Wasm support ES modules only.
|
||||
moduleKind = ModuleKind.ES
|
||||
}
|
||||
configuration.put(JSConfigurationKeys.MODULE_KIND, moduleKind)
|
||||
|
||||
configuration.putIfNotNull(JSConfigurationKeys.INCREMENTAL_DATA_PROVIDER, services[IncrementalDataProvider::class.java])
|
||||
|
||||
Reference in New Issue
Block a user