UNPKG

emscripten-wasm-loader

Version:

Common interface to load wasm module into isomorphic environment

7 lines (5 loc) 227 B
import { root } from 'getroot'; /** * Naïvely check if current runtime supports native web assembly. */ export const isWasmEnabled = () => !!root.WebAssembly && !!root.WebAssembly.compile && !!root.WebAssembly.instantiate;