From c51f9b97720b90a89f11c65a04690009cc4fcea0 Mon Sep 17 00:00:00 2001 From: luckyadam Date: Tue, 31 Dec 2019 11:15:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(mini-runner):=20=E4=BF=AE=E5=A4=8D=20watch?= =?UTF-8?q?=20=E6=97=B6=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=BB=84=E4=BB=B6=E6=97=A0=E6=B3=95=E5=8F=8A=E6=97=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=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/taro-mini-runner/src/plugins/MiniPlugin.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/taro-mini-runner/src/plugins/MiniPlugin.ts b/packages/taro-mini-runner/src/plugins/MiniPlugin.ts index 4bc55f602925..1c71cc2172df 100644 --- a/packages/taro-mini-runner/src/plugins/MiniPlugin.ts +++ b/packages/taro-mini-runner/src/plugins/MiniPlugin.ts @@ -970,6 +970,9 @@ export default class MiniPlugin { } this.transferFileContent(compiler) } + if (!this.components.has(obj)) { + this.components.add(obj) + } } } }