Skip to content

Commit a1be62f

Browse files
author
alex
committed
fix postcss-icss-selectors/issues/121
1 parent 9666373 commit a1be62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const localizeSelectors = (selectors, mode, getAlias) => {
106106

107107
const walkRules = (css, callback) => {
108108
css.walkRules(rule => {
109-
if (rule.parent.type !== "atrule" || !/keyframes$/.test(rule.parent.name)) {
109+
if (rule.parent && rule.parent.type !== "atrule" || !/keyframes$/.test(rule.parent.name)) {
110110
callback(rule);
111111
}
112112
});

0 commit comments

Comments
 (0)