From a41dee015e40fd45ab147358e1b7cfcd5f303da6 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 8 Jan 2021 15:56:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dplugins=E4=B8=BAnull?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/executor/src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/executor/src/index.js b/packages/executor/src/index.js index 77cc6316..af216b25 100644 --- a/packages/executor/src/index.js +++ b/packages/executor/src/index.js @@ -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()