mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 23:20:02 +00:00
11 lines
318 B
JavaScript
11 lines
318 B
JavaScript
let _onigurumaPromise = null;
|
|
async function getWasmInlined() {
|
|
if (!_onigurumaPromise) {
|
|
// @ts-expect-error anyway
|
|
_onigurumaPromise = import('./onig.mjs')
|
|
.then(r => ({ data: r.default }));
|
|
}
|
|
return _onigurumaPromise;
|
|
}
|
|
|
|
export { getWasmInlined as default, getWasmInlined };
|