diff --git a/CHANGELOG.md b/CHANGELOG.md index 55a0f2f4f09e..307e872dbd20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Require matching prefix when detecting negatives ([#8121](https://github.com/tailwindlabs/tailwindcss/pull/8121)) - Handle duplicate At Rules without children ([#8122](https://github.com/tailwindlabs/tailwindcss/pull/8122)) - Allow arbitrary values with commas in `@apply` ([#8125](https://github.com/tailwindlabs/tailwindcss/pull/8125)) +- Fix intellisense for plugins with multiple `@apply` rules ([#8213](https://github.com/tailwindlabs/tailwindcss/pull/8213)) ### Added diff --git a/src/lib/expandApplyAtRules.js b/src/lib/expandApplyAtRules.js index 74b022ed1986..65fe7950f0a1 100644 --- a/src/lib/expandApplyAtRules.js +++ b/src/lib/expandApplyAtRules.js @@ -309,7 +309,7 @@ function processApply(root, context, localCache) { // Collect all apply candidates and their rules for (let apply of applies) { - let candidates = [] + let [candidates] = perParentApplies.get(apply.parent) || [[], apply.source] perParentApplies.set(apply.parent, [candidates, apply.source])