Skip to content

Make same-file duplicate skipping the default, fixes #601 - #602

Open
Nic-Polumeyv wants to merge 2 commits into
postcss:masterfrom
Nic-Polumeyv:skipduplicates-same-file
Open

Make same-file duplicate skipping the default, fixes #601#602
Nic-Polumeyv wants to merge 2 commits into
postcss:masterfrom
Nic-Polumeyv:skipduplicates-same-file

Conversation

@Nic-Polumeyv

@Nic-Polumeyv Nic-Polumeyv commented Jul 18, 2026

Copy link
Copy Markdown

Now implements the default flip from #601: repeated imports of the same file are skipped by default, and the previous content-based skipping moved behind skipDuplicates: "content". false still disables both layers.

The same-file layer (state.importedFiles) already runs for every truthy value, so only the two content-layer checks changed. Flipping the default changes output for projects that relied on content collapsing, so this needs a major.

@Nic-Polumeyv Nic-Polumeyv changed the title Allow skipping only same-file duplicates with skipDuplicates: "same-file", fixes #601 Make same-file duplicate skipping the default, fixes #601 Jul 27, 2026
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.

1 participant