diff --git a/src/rollup/rollup.ts b/src/rollup/rollup.ts index 40a8311fb81..c3dffad1299 100644 --- a/src/rollup/rollup.ts +++ b/src/rollup/rollup.ts @@ -56,7 +56,7 @@ export async function rollupInternal( err.watchFiles = watchFiles; } await graph.pluginDriver.hookParallel('buildEnd', [err]); - if (!watcher) await graph.pluginDriver.hookParallel('closeBundle', []); + await graph.pluginDriver.hookParallel('closeBundle', []); throw err; }