Skip to content

Commit b1b5281

Browse files
satya164mxstbr
andauthored
Update src/visitors/transpileCssProp.js
Co-Authored-By: mxstbr <[email protected]>
1 parent f2676b2 commit b1b5281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/visitors/transpileCssProp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const getTag = node => {
77
if (node.type === 'JSXMemberExpression') {
88
return `${getTag(node.object)}.${node.property.name}`
99
}
10-
return undefined
10+
throw path.buildCodeFrameError('Failed to get the name');
1111
}
1212

1313
export default t => (path, state) => {

0 commit comments

Comments
 (0)