mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 15:10:03 +00:00
8 lines
284 B
JavaScript
8 lines
284 B
JavaScript
|
const getWasm = async (info) => {
|
||
|
// @ts-expect-error this will be compiled to ArrayBuffer
|
||
|
const binray = await import('./onig.mjs').then(m => m.default);
|
||
|
return WebAssembly.instantiate(binray, info).then(wasm => wasm.instance.exports);
|
||
|
};
|
||
|
|
||
|
export { getWasm as default };
|