@kbach/react 0.5.44 → 0.5.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vite-plugin.js +1 -1
- package/dist/vite-plugin.mjs +1 -1
- package/package.json +1 -1
package/dist/vite-plugin.js
CHANGED
|
@@ -2991,7 +2991,7 @@ function extractClassStrings(code) {
|
|
|
2991
2991
|
const innerStrings = block.match(/["'`]([^"'`]{1,300})["'`]/g) ?? [];
|
|
2992
2992
|
for (const s of innerStrings) pushTokens(s.slice(1, -1), found);
|
|
2993
2993
|
}
|
|
2994
|
-
const clsxRe = /(?:clsx|cn|classnames)\(([^)]{1,1000})\)/g;
|
|
2994
|
+
const clsxRe = /(?:clsx|cn|classnames|cx)\(([^)]{1,1000})\)/g;
|
|
2995
2995
|
while ((m = clsxRe.exec(code)) !== null) {
|
|
2996
2996
|
const block = m[1];
|
|
2997
2997
|
const innerStrings = block.match(/["'`]([^"'`]{1,300})["'`]/g) ?? [];
|
package/dist/vite-plugin.mjs
CHANGED
|
@@ -185,7 +185,7 @@ function extractClassStrings(code) {
|
|
|
185
185
|
const innerStrings = block.match(/["'`]([^"'`]{1,300})["'`]/g) ?? [];
|
|
186
186
|
for (const s of innerStrings) pushTokens(s.slice(1, -1), found);
|
|
187
187
|
}
|
|
188
|
-
const clsxRe = /(?:clsx|cn|classnames)\(([^)]{1,1000})\)/g;
|
|
188
|
+
const clsxRe = /(?:clsx|cn|classnames|cx)\(([^)]{1,1000})\)/g;
|
|
189
189
|
while ((m = clsxRe.exec(code)) !== null) {
|
|
190
190
|
const block = m[1];
|
|
191
191
|
const innerStrings = block.match(/["'`]([^"'`]{1,300})["'`]/g) ?? [];
|