*Need to return dynamic function and execute it
This commit is contained in:
parent
6413d97c61
commit
55fa792bc9
|
@ -15,7 +15,7 @@ import b4a from "b4a";
|
|||
import type { ClearablePromise } from "p-timeout";
|
||||
|
||||
async function dImport(pkg: string): Promise<any> {
|
||||
return new Function(`return import("${pkg}")`);
|
||||
return new Function(`return import("${pkg}")`)();
|
||||
}
|
||||
|
||||
let pTimeout: typeof import("p-timeout").default;
|
||||
|
|
Loading…
Reference in New Issue