From 3efa5e676c42819495c051e9e9ccae00aaa7ca26 Mon Sep 17 00:00:00 2001 From: houhaoyu Date: Thu, 17 Mar 2022 20:04:41 +0800 Subject: [PATCH] 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 afa50cb..529302f 100644 --- a/compiler/src/compile_info.ts +++ b/compiler/src/compile_info.ts @@ -145,7 +145,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', ''));