@kbach/react 0.5.18 → 0.5.19
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 +3 -2
- package/dist/vite-plugin.mjs +3 -2
- package/package.json +1 -1
package/dist/vite-plugin.js
CHANGED
|
@@ -3451,8 +3451,9 @@ function kbach(userConfig) {
|
|
|
3451
3451
|
if (id === RESOLVED_ID) return getAllCSS();
|
|
3452
3452
|
},
|
|
3453
3453
|
transform(code, id) {
|
|
3454
|
-
|
|
3455
|
-
|
|
3454
|
+
const cleanId = id.split("?")[0];
|
|
3455
|
+
if (cleanId.endsWith(".css") && !id.includes("node_modules") && !id.includes("\0")) {
|
|
3456
|
+
processedCSSFiles.add(cleanId);
|
|
3456
3457
|
const kbachCSS = getAllCSS();
|
|
3457
3458
|
if (!kbachCSS) return null;
|
|
3458
3459
|
return { code: code + "\n/* kbach utilities */\n" + kbachCSS, map: null };
|
package/dist/vite-plugin.mjs
CHANGED
|
@@ -109,8 +109,9 @@ function kbach(userConfig) {
|
|
|
109
109
|
if (id === RESOLVED_ID) return getAllCSS();
|
|
110
110
|
},
|
|
111
111
|
transform(code, id) {
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
const cleanId = id.split("?")[0];
|
|
113
|
+
if (cleanId.endsWith(".css") && !id.includes("node_modules") && !id.includes("\0")) {
|
|
114
|
+
processedCSSFiles.add(cleanId);
|
|
114
115
|
const kbachCSS = getAllCSS();
|
|
115
116
|
if (!kbachCSS) return null;
|
|
116
117
|
return { code: code + "\n/* kbach utilities */\n" + kbachCSS, map: null };
|