From 724a0f01356205c273c81f024a80c888ded6bb44 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 13 Dec 2022 07:23:18 -0500 Subject: [PATCH] *switch plugin loading to use require and not import --- src/modules/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/plugin.ts b/src/modules/plugin.ts index fe3a48f..b67ad20 100644 --- a/src/modules/plugin.ts +++ b/src/modules/plugin.ts @@ -55,7 +55,7 @@ export class PluginApiManager { let plugin: Plugin; try { - plugin = (await import(paths.shift() as string)) as Plugin; + plugin = require(paths.shift() as string) as Plugin; } catch (e) { throw e; }