Skip to content

Commit ce386b9

Browse files
authored
Prevent crash in postcss 8
1 parent 5b964c4 commit ce386b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = function resolveNestedSelector(selector, node) {
22
var parent = node.parent;
3+
if( !parent ) return [];
34
var parentIsNestAtRule = parent.type === 'atrule' && parent.name === 'nest';
45

56
if (parent.type === 'root') return [selector];

0 commit comments

Comments
 (0)