Closed alexgleason closed 1 year ago
Maybe try this: only distribute an ES module by setting the 'scriptModule' build option to false
? The top level await is necessary for compiling the required WASM.
If top level await is not an option for you, you can try making your own entry-point mod.ts
where you expose an asynchronous „init“ function or similar. (Something like this is done for the browser distribution.)
I'm using dnt to convert a deno library which depends on deno-sqlite into an npm module. It fails here: