Skip to content

Commit 6370e73

Browse files
committed
fix: vite plugin don't work on newer package versions
1 parent 6a60878 commit 6370e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/vite/utils/inline-tailwind.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function substituteProps(
6363

6464
const startIndex = regexStart.lastIndex - 1;
6565
const codeSliced = code.substring(startIndex);
66-
const upToChildrenIndex = codeSliced.indexOf('children: (');
66+
const upToChildrenIndex = codeSliced.indexOf('children: ');
6767
const matchingBracketIndex = matchMultiKeyBracket(codeSliced);
6868

6969
// Some nodes have no children, so the matched 'children: (' will be from another node, with the result being that the prop string will be too long.

0 commit comments

Comments
 (0)