From d1b21cddd9f7326bac30beb6aafe85c433d31543 Mon Sep 17 00:00:00 2001 From: puyajun Date: Tue, 15 Mar 2022 18:50:59 +0800 Subject: [PATCH] puyajun@huawei.com fix main.js filterWorker Signed-off-by: puyajun --- compiler/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/main.js b/compiler/main.js index 8a3415f33..8b0397693 100644 --- a/compiler/main.js +++ b/compiler/main.js @@ -266,7 +266,7 @@ function validateWorkOption() { } function filterWorker(workerPath) { - return /\.(ts|js)$/.test(workerPath) && !/^\.\./.test(workerPath); + return /\.(ts|js)$/.test(workerPath); } ;(function initSystemResource() { -- Gitee