diff --git a/compiler/src/compile_info.ts b/compiler/src/compile_info.ts index 529302f..afa50cb 100644 --- a/compiler/src/compile_info.ts +++ b/compiler/src/compile_info.ts @@ -145,7 +145,7 @@ export class ResultStates { }); }); - compiler.hooks.entryOption.tap('beforeRun', () => { + compiler.hooks.beforeRun.tap('beforeRun', () => { const rootFileNames: string[] = []; Object.values(projectConfig.entryObj).forEach((fileName: string) => { rootFileNames.push(fileName.replace('?entry', ''));