From 3fdda3384e458b1919bab51039335e2fd3afdbad Mon Sep 17 00:00:00 2001 From: David Festal Date: Tue, 27 Jan 2026 14:44:54 +0100 Subject: [PATCH] Apply review comment suggestion Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: David Festal --- .../cli/src/modules/build/lib/bundler/moduleFederation.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/modules/build/lib/bundler/moduleFederation.ts b/packages/cli/src/modules/build/lib/bundler/moduleFederation.ts index 854cad0246..becf438c34 100644 --- a/packages/cli/src/modules/build/lib/bundler/moduleFederation.ts +++ b/packages/cli/src/modules/build/lib/bundler/moduleFederation.ts @@ -165,7 +165,10 @@ export async function createRuntimeSharedDependenciesEntryPoint(options: { if (watch) { const watcher = chokidar.watch(resolvePath(targetPath, 'package.json')); - watcher.on('change', doWriteSharedDependenciesModule); + watcher.on('change', async () => { + await doWriteSharedDependenciesModule(); + watch(); + }); } await doWriteSharedDependenciesModule();