From 55fa792bc90ee91ec62d9feef204472f3688c504 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 15 Dec 2022 06:04:24 -0500 Subject: [PATCH] *Need to return dynamic function and execute it --- src/modules/plugins/rpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/plugins/rpc.ts b/src/modules/plugins/rpc.ts index f1931ef..c9d0bac 100644 --- a/src/modules/plugins/rpc.ts +++ b/src/modules/plugins/rpc.ts @@ -15,7 +15,7 @@ import b4a from "b4a"; import type { ClearablePromise } from "p-timeout"; async function dImport(pkg: string): Promise { - return new Function(`return import("${pkg}")`); + return new Function(`return import("${pkg}")`)(); } let pTimeout: typeof import("p-timeout").default;