Skip to content

Commit 64d9b92

Browse files
committed
defense coding around babel features that might not be available
1 parent 9c4f19f commit 64d9b92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/visitors/transpileCssProp.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ export default t => (path, state) => {
134134
t.isNullLiteral,
135135
t.isNumericLiteral,
136136
t.isStringLiteral,
137-
].every(x => !x(property.value))
137+
]
138+
.filter(Boolean) // older versions of babel might not have bigint support baked in
139+
.every(x => !x(property.value))
138140
) {
139141
replaceObjectWithPropFunction = true
140142

0 commit comments

Comments
 (0)