From 2024950170e2d0d104203bc447a3125f859defa7 Mon Sep 17 00:00:00 2001 From: kettanaito Date: Wed, 15 May 2019 18:41:37 +0200 Subject: [PATCH] fix: adds safety check before accessing "rule parent" --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 2acedea..f73437a 100644 --- a/index.js +++ b/index.js @@ -494,6 +494,7 @@ module.exports = postcss.plugin('postcss-modules-local-by-default', function( css.walkRules(function(rule) { if ( + rule.parent && rule.parent.type === 'atrule' && /keyframes$/i.test(rule.parent.name) ) {