Revert "*Need to return dynamic function and execute it"

This reverts commit 55fa792bc9.
This commit is contained in:
Derrick Hammer 2022-12-15 06:23:28 -05:00
parent bd1226ad18
commit 485fa98f0e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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;