From 485fa98f0ec4618927da06a50adda3f7c8b948a3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 15 Dec 2022 06:23:28 -0500 Subject: [PATCH] Revert "*Need to return dynamic function and execute it" This reverts commit 55fa792bc90ee91ec62d9feef204472f3688c504. --- 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 c9d0bac..f1931ef 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;