Skip to content

Commit 1b64353

Browse files
ilgonmiczoobestik
authored andcommitted
Replace only imports[] for compatibility with Kotlin 2.0
1 parent 9be44b8 commit 1b64353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js-executor/execute-es-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export async function executeWasmCode(container, jsCode, wasmCode) {
66
export async function executeWasmCodeWithSkiko(container, jsCode, wasmCode) {
77
const newCode = prepareJsCode(jsCode)
88
.replaceAll(
9-
"imports['./skiko.mjs'] ?? await import('./skiko.mjs')",
9+
"imports['./skiko.mjs']",
1010
"window.skikoImports"
1111
);
1212
return execute(container, newCode, wasmCode);

0 commit comments

Comments
 (0)