From 4304fac14574d307da396465bc8f48b14ba509ef Mon Sep 17 00:00:00 2001 From: lihong Date: Fri, 3 Sep 2021 09:50:41 +0800 Subject: [PATCH] lihong67@huawei.com Signed-off-by: lihong Change-Id: I3a56d39dec35c60a8853ef557cad42aa8364b94f --- compiler/src/process_worker.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/src/process_worker.ts b/compiler/src/process_worker.ts index 56489fdbc..65e3c66f5 100644 --- a/compiler/src/process_worker.ts +++ b/compiler/src/process_worker.ts @@ -16,8 +16,5 @@ import { processSystemApi } from './validate_ui_syntax'; module.exports = function processWorker(source: string): string { - if (/workers/.test(this.resourcePath)) { - return processSystemApi(source); - } - return source; + return processSystemApi(source); }; -- Gitee