Skip to content

Commit

Permalink
fix(nf): rebuild federation artefacts during build when watch mode is on
Browse files Browse the repository at this point in the history
  • Loading branch information
manfredsteyer committed Dec 20, 2024
1 parent fdc7741 commit f2ad1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/native-federation/src/builders/build/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export async function* runBuilder(
yield output;
}

if (!first && nfOptions.dev) {
if (!first && (nfOptions.dev || watch)) {
setTimeout(async () => {
await buildForFederation(config, fedOptions, externals);
logger.info('Done!');
Expand Down

0 comments on commit f2ad1f1

Please sign in to comment.