mirror of
https://github.com/imezx/Warp.git
synced 2025-04-25 07:30:02 +00:00
7 lines
284 B
JavaScript
7 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 };
|