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', ''));