Skip to content

Commit

Permalink
fix(bundling): use watch mode for rollup plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed May 27, 2024
1 parent e8b0972 commit 34c034a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/rollup/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 34c034a

Please sign in to comment.