Only detect nesting when using @apply (#13325)
* drop nesting detection for `@tailwind` * drop separate nesting detection entirely * detect nesting only when using `@apply` with a class that uses nesting * drop unnecessary `important` config * add test to verify applying nested user CSS errors * add error reason to tests * update `@apply` error message
This commit is contained in:
parent
3ba51d14c7
commit
bda84210d6
5 changed files with 86 additions and 178 deletions
|
|
@ -7,7 +7,6 @@ import resolveDefaultsAtRules from './lib/resolveDefaultsAtRules'
|
|||
import collapseAdjacentRules from './lib/collapseAdjacentRules'
|
||||
import collapseDuplicateDeclarations from './lib/collapseDuplicateDeclarations'
|
||||
import partitionApplyAtRules from './lib/partitionApplyAtRules'
|
||||
import detectNesting from './lib/detectNesting'
|
||||
import { createContext } from './lib/setupContextUtils'
|
||||
import { issueFlagNotices } from './featureFlags'
|
||||
|
||||
|
|
@ -15,8 +14,6 @@ export default function processTailwindFeatures(setupContext) {
|
|||
return async function (root, result) {
|
||||
let { tailwindDirectives, applyDirectives } = normalizeTailwindDirectives(root)
|
||||
|
||||
detectNesting()(root, result)
|
||||
|
||||
// Partition apply rules that are found in the css
|
||||
// itself.
|
||||
partitionApplyAtRules()(root, result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue