fixed 28d611d from https://gitee.com/houhaoyu/developtools_ace-ets2bundle/pulls/418
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 611669acb1
commit 8a50aad312
+1 -1
View File
@@ -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', ''));