diff --git a/src/index.js b/src/index.js index 5e34095..b8c05ad 100644 --- a/src/index.js +++ b/src/index.js @@ -71,6 +71,11 @@ export default function({types: t}){ // Ensure the class is extending something. const superClass = path.get('superClass'); if (!superClass.node) return; + + // Other plugins might wrap the super class in parenthesis + if (superClass.type === 'ParenthesizedExpression') { + superClass = superClass.get('expression'); + } // Ensure that the class is extending a variable matching one of the options. const matches = classes.some(name => superClass.isIdentifier({name}));