From d712be2971d248e9058470cdcd363d78d1da182b Mon Sep 17 00:00:00 2001 From: jiangbo Date: Tue, 21 Jun 2022 10:27:26 +0800 Subject: [PATCH] jiangbo91@huawei.com MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit delete 多余readSystemModules function Signed-off-by: jiangbo --- compiler/main.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/compiler/main.js b/compiler/main.js index c999683..7582cc3 100644 --- a/compiler/main.js +++ b/compiler/main.js @@ -305,13 +305,6 @@ function filterWorker(workerPath) { } })(); -;(function readSystemModules() { - const systemModulesPath = path.resolve(__dirname,'../../api'); - if (fs.existsSync(systemModulesPath)) { - systemModules.push(...fs.readdirSync(systemModulesPath)); - } -})(); - ;(function readSystemModules() { const systemModulesPath = path.resolve(__dirname,'../../api'); if (fs.existsSync(systemModulesPath)) {