Nanashi.
06/26/2024, 9:15 PM@JsModule("@sevenc-nanashi/valuetree-ts")
@JsNonModule
external object ValueTreeTs {
fun parseValueTree(text: Uint8Array): ValueTree
fun dumpValueTree(tree: ValueTree): Uint8Array
}
But it generates:
import ValueTreeTs from '@sevenc-nanashi/valuetree-ts'
Thus some bundlers complain this.
Bundling core...
✘ [ERROR] No matching export in "utaformatix3/build/js/temporary_unbundled/node_modules/@sevenc-nanashi/valuetree-ts/mod.js" for import "default"
utaformatix3/build/js/temporary_unbundled/kotlin/utaformatix-core-modified.mjs:4:7:
4 │ import ValueTreeTs from '@sevenc-nanashi/valuetree-ts';
╵ ~~~~~~~~~~~
error: Uncaught (in promise) Error: Build failed with 1 error:
utaformatix3/build/js/temporary_unbundled/kotlin/utaformatix-core-modified.mjs:4:7: ERROR: No matching export in "utaformatix3/build/js/temporary_unbundled/node_modules/@sevenc-nanashi/valuetree-ts/mod.js" for import "default"
Are there any good solution?
I'd like kotlin to emit:
import * as ValueTreeTs from '@sevenc-nanashi/valuetree-ts';
Nanashi.
06/26/2024, 9:26 PM@file:JsModule