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