Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make sure the root node has a source location for the end
  • Loading branch information
thecrypticace committed Dec 1, 2023
commit 2aedd6422ccda174ff007bdc8aeb8c6cc6176afd
3 changes: 3 additions & 0 deletions src/lib/expandTailwindAtRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ export default function expandTailwindAtRules(context) {
root.append(cloned)
}

// TODO: Why is the root node having no source location for `end` possible?
root.source.end = root.source.end ?? root.source.start

// If we've got a utility layer and no utilities are generated there's likely something wrong
const hasUtilityVariants = variantNodes.some(
(node) => node.raws.tailwind?.parentLayer === 'utilities'
Expand Down