所有其他 wasm 模块都很慢或/和内存泄漏,所以我自己做了 :)
yarn add @evan/wasm
目标:
deno.js
节点.mjs
fetch.mjs(节点)
fetch.js (web/deno)
simd.(m)js(对simd的实验支持) :warning: not all modules have this target :warning:
import * as mod from '@evan/wasm/target//' ;
import * as mod from 'https://unpkg.com/@evan/wasm@0.0.44/target//' ;
// example
import * as snappy from 'https://unpkg.com/@evan/wasm@0.0.44/target/s
1