Skip to content

Commit

Permalink
fix: isArray && object
Browse files Browse the repository at this point in the history
  • Loading branch information
shijinn520 committed Oct 7, 2024
1 parent d2065b3 commit 9954110
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/plugin/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ class PluginLoader {
/** 函数语法糖数组 */
if (Array.isArray(Fn)) {
for (const Val of Fn as AppType[]) {
if (typeof Val !== 'object' || !Val?.type) continue
logger.debug(`载入插件 [${plugin}]${_path ? `${common.getRelPath(_path)}` : ''}[${file}][${Val.name}]`)
list.push(this.cachePlugin(index, plugin, file, Val))
}
Expand Down

0 comments on commit 9954110

Please sign in to comment.