13 lines
No EOL
456 B
JavaScript
13 lines
No EOL
456 B
JavaScript
/*
|
|
* This is more a hack than any thing else.
|
|
* TypeScript can't keep the async import statements, but we require it to initialize the wasm object...
|
|
*/
|
|
module.exports = {
|
|
getAudioLibraryInstance() {
|
|
return import("tc-backend/audio-lib/index_bg.wasm").then(wasm => {
|
|
return import("tc-backend/audio-lib/index").then(pkg => {
|
|
return Object.assign(pkg, { memory: wasm.memory });
|
|
});
|
|
});
|
|
}
|
|
}; |