From c7b5ae8ee65e0f4905bd338187472abb6e2a4708 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Tue, 28 Jul 2026 12:57:29 +0700 Subject: [PATCH] fix(lib/plugins): external JS plugins not loading --- lib/plugins/src/_internal/external-plugins.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugins/src/_internal/external-plugins.ts b/lib/plugins/src/_internal/external-plugins.ts index 09fcc37..4f5e68e 100644 --- a/lib/plugins/src/_internal/external-plugins.ts +++ b/lib/plugins/src/_internal/external-plugins.ts @@ -242,7 +242,8 @@ function createOptionsFactory(script?: string): PluginOptionsFactory { pUnscopedApi, // See types.consumers.ts (opts: PluginOptions) => opts, - )() + )?.default + if (typeof opts !== 'object' || opts === null) throw new Error('Plugin options must be an object')