Skip to content

Handle multiple config files in watch mode - #536

Open
RyanZim wants to merge 1 commit into
masterfrom
ryan/multi-config
Open

Handle multiple config files in watch mode#536
RyanZim wants to merge 1 commit into
masterfrom
ryan/multi-config

Conversation

@RyanZim

@RyanZim RyanZim commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Also optimized recompile list computation

Also optimized recompile list computation

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Multi-config watch behavior still needs regression coverage.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds support for watching multiple PostCSS configuration files and optimizes recompilation selection.

Changes:

  • Tracks discovered configurations in a Set.
  • Recompiles inputs when configurations change.
  • Avoids unnecessary dependency-graph computation.
File summaries
File Summary Review comment
index.js Adds multi-config watching and optimized recompilation selection. Nit (2 votes): Add integration coverage for separate inputs/configurations and verify each configuration change triggers recompilation.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread index.js
})

if (configFile) watcher.add(configFile)
if (configFiles.size) watcher.add([...configFiles])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants