v115
in v115, we added ?module
query to allow you import .wasm
as a WebAssembly.Module
Object:
import wasm from "https://esm.sh/@dqbd/[email protected]/tiktoken_bg.wasm?module"
const { exports } = WebAssembly.instantiate(wasm, imports)
Changelog: