From 6e7116f1a7e78dc5ae18d427f6a1ed6c9009f579 Mon Sep 17 00:00:00 2001 From: intrnl Date: Mon, 30 Nov 2020 08:50:53 +0700 Subject: [PATCH] always run closeBundle even on watch mode --- src/rollup/rollup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }