fix(lib/plugins): external JS plugins not loading
This commit is contained in:
parent
e73bbc03ba
commit
c7b5ae8ee6
1 changed files with 2 additions and 1 deletions
|
|
@ -242,7 +242,8 @@ function createOptionsFactory(script?: string): PluginOptionsFactory {
|
||||||
pUnscopedApi,
|
pUnscopedApi,
|
||||||
// See types.consumers.ts
|
// See types.consumers.ts
|
||||||
(opts: PluginOptions) => opts,
|
(opts: PluginOptions) => opts,
|
||||||
)()
|
)?.default
|
||||||
|
|
||||||
if (typeof opts !== 'object' || opts === null)
|
if (typeof opts !== 'object' || opts === null)
|
||||||
throw new Error('Plugin options must be an object')
|
throw new Error('Plugin options must be an object')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue