Skip to content

Commit cab2d1c

Browse files
committed
fix: Fix a type related problem
1 parent 38678d8 commit cab2d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const plugin = (options = {}) => {
5656
addContentUtilities({
5757
addUtilities,
5858
prefix:
59-
'prefix' in contentUtilities
59+
typeof contentUtilities === 'object' && 'prefix' in contentUtilities
6060
? contentUtilities.prefix || 'tw-content'
6161
: 'tw-content',
6262
pseudoClasses: mergedPseudoClasses,

0 commit comments

Comments
 (0)