fix: 修复plugins为null的问题

master
xiaojunnuo 2021-01-08 15:56:50 +08:00
parent d1a74713ef
commit a41dee015e
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ export class Executor {
if (plugin == null) {
return
}
if (this.plugins == null) {
this.plugins = {}
}
this.plugins[plugin.name] = plugin
if (plugin.define) {
const define = plugin.define()