From 4ffb96cfb9fa1f35512f179e6598b72dd1dad650 Mon Sep 17 00:00:00 2001 From: houhaoyu Date: Thu, 17 Mar 2022 20:04:41 +0800 Subject: [PATCH] fixed 28d611d from https://gitee.com/houhaoyu/developtools_ace-ets2bundle/pulls/418 houhaoyu@huawei.com fix enum in preview Signed-off-by: houhaoyu Change-Id: Ifa1807639bbda24486e328dcc35287730e6590fa --- compiler/src/compile_info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/compile_info.ts b/compiler/src/compile_info.ts index 3f08a23..6b884d4 100644 --- a/compiler/src/compile_info.ts +++ b/compiler/src/compile_info.ts @@ -138,7 +138,7 @@ export class ResultStates { }); }); - compiler.hooks.beforeRun.tap('beforeRun', () => { + compiler.hooks.entryOption.tap('beforeRun', () => { const rootFileNames: string[] = []; Object.values(projectConfig.entryObj).forEach((fileName: string) => { rootFileNames.push(fileName.replace('?entry', ''));