Skip to content

Commit bcfc50c

Browse files
author
Max Stoiber
authored
Merge pull request #223 from colebemis/object-keys
Replace Object.entries with Object.keys for better node compatibility
2 parents 1014f3e + 8edef2d commit bcfc50c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/visitors/transpileCssProp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export default t => (path, state) => {
8484

8585
css.expressions = css.expressions.reduce((acc, ex) => {
8686
if (
87-
Object.entries(bindings).some(([, b] /*: any */) =>
88-
b.referencePaths.find(p => p.node === ex)
87+
Object.keys(bindings).some(key =>
88+
bindings[key].referencePaths.find(p => p.node === ex)
8989
) ||
9090
t.isFunctionExpression(ex) ||
9191
t.isArrowFunctionExpression(ex)

0 commit comments

Comments
 (0)