@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.
@@ -3451,8 +3451,9 @@ function kbach(userConfig) {
3451
3451
  if (id === RESOLVED_ID) return getAllCSS();
3452
3452
  },
3453
3453
  transform(code, id) {
3454
- if (id.endsWith(".css") && !id.includes("node_modules") && !id.includes("\0")) {
3455
- processedCSSFiles.add(id);
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 };
@@ -109,8 +109,9 @@ function kbach(userConfig) {
109
109
  if (id === RESOLVED_ID) return getAllCSS();
110
110
  },
111
111
  transform(code, id) {
112
- if (id.endsWith(".css") && !id.includes("node_modules") && !id.includes("\0")) {
113
- processedCSSFiles.add(id);
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbach/react",
3
- "version": "0.5.18",
3
+ "version": "0.5.19",
4
4
  "description": "React / React Native components and hooks for the Kbach framework",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./dist/index.js",