diff --git a/packages/rollup/src/plugins/plugin.ts b/packages/rollup/src/plugins/plugin.ts index b4f7e1bc97d43..6c91222caf705 100644 --- a/packages/rollup/src/plugins/plugin.ts +++ b/packages/rollup/src/plugins/plugin.ts @@ -94,7 +94,9 @@ async function buildRollupTarget( const namedInputs = getNamedInputs(projectRoot, context); const rollupConfig = ( (await loadConfigFile( - joinPathFragments(context.workspaceRoot, configFilePath) + joinPathFragments(context.workspaceRoot, configFilePath), + {}, + true // Enable watch mode so that rollup properly reloads config files without reusing a cached version )) as { options: RollupOptions[] } ).options; const outputs = getOutputs(rollupConfig, projectRoot);