catom 2.0.3 → 2.0.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../src/transformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA0B,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAoDhD,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,GACjC,WAAW,CAAC,cAAc,CAAC,CAkC7B"}
1
+ {"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../src/transformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA0B,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAoDhD,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,GACjC,WAAW,CAAC,cAAc,CAAC,CA+B7B"}
@@ -72,11 +72,8 @@ export function createCatomTransformer(functionName, onRules) {
72
72
  const { classNames, rules } = processStyleObject(styleObj);
73
73
  // Report rules to the plugin
74
74
  onRules(rules);
75
- // Return a string literal with the class names
76
- return {
77
- type: "StringLiteral",
78
- value: classNames.join(" "),
79
- };
75
+ // Return as a string - unplugin-ast will handle it
76
+ return JSON.stringify(classNames.join(" "));
80
77
  }
81
78
  catch (err) {
82
79
  const message = err instanceof Error ? err.message : String(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catom",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Zero-runtime atomic CSS-in-JS for Vite",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",