File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,11 @@ const analyze = (css) => {
309309 }
310310
311311 // i.e. `property: value\9`
312- if ( node . children ?. last ?. type === 'Identifier' && endsWith ( '\\9' , node . children . last . name ) ) {
312+ if ( node . children
313+ && node . children . last
314+ && node . children . last . type === 'Identifier'
315+ && endsWith ( '\\9' , node . children . last . name )
316+ ) {
313317 valueBrowserhacks . push ( stringifyNode ( node ) )
314318 }
315319
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ const keywords = {
88}
99
1010export function isValueKeyword ( node ) {
11- const firstChild = node . children ?. first
11+ if ( ! node . children ) return false
12+ const firstChild = node . children . first
1213 if ( ! firstChild ) return false
1314
1415 if ( node . children . size > 1 ) return false
You can’t perform that action at this time.
0 commit comments