houhaoyu@huawei.com

fix enum in preview

Signed-off-by: houhaoyu <houhaoyu@huawei.com>
Change-Id: Ifa1807639bbda24486e328dcc35287730e6590fa
This commit is contained in:
houhaoyu
2022-03-17 20:04:41 +08:00
parent d44464edc9
commit 4ffb96cfb9
+1 -1
View File
@@ -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', ''));