Warp/node_modules/shikiji-core/dist/wasm-inlined.mjs

8 lines
284 B
JavaScript
Raw Normal View History

2024-01-31 06:33:19 +00:00
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 };