Skip to content

Commit 3c9fbec

Browse files
Merge pull request #13 from Tim-Wils/fix-ignore-object-value-in-for-loop
Skip theme values if not typeof string
2 parents 73e8ccb + 72a4544 commit 3c9fbec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/tailwind-clamp/lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export default plugin.withOptions(function (options = {}) {
4747
const variableDefinitions = {};
4848

4949
for (const [name, value] of Object.entries(clampTheme)) {
50+
if (typeof value != 'string') continue;
5051
const firstArg = value.split(',')[0];
5152
if (isLengthValue(firstArg)) {
5253
variableDefinitions[name] = value;

0 commit comments

Comments
 (0)