*Importing a plugin may be ESM and so check for the default property
This commit is contained in:
parent
7cfad02ae5
commit
17da91a558
|
@ -39,6 +39,9 @@ export class PluginApiManager {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
if ("default" in plugin) {
|
||||||
|
plugin = plugin?.default as Plugin;
|
||||||
|
}
|
||||||
|
|
||||||
plugin.name = sanitizeName(plugin.name);
|
plugin.name = sanitizeName(plugin.name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue