chaincss 2.1.23 → 2.1.24

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.
@@ -3237,7 +3237,7 @@ function chaincssPlugin(options = {}) {
3237
3237
  return false;
3238
3238
  }
3239
3239
  const isUserFile = id.includes("/src/") || id.includes("/components/");
3240
- const isComponent = /\.(t|j)sx?$/.test(id);
3240
+ const isComponent = /\.(t|j)sx?$/.test(id) || id.endsWith(".chain.ts") || id.endsWith(".chain.js");
3241
3241
  return isUserFile && isComponent;
3242
3242
  }
3243
3243
  function updateCSS() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chaincss",
3
- "version": "2.1.23",
3
+ "version": "2.1.24",
4
4
  "description": "ChainCSS - The first CSS-in-JS library with true auto-detection mixed mode. Zero runtime by default, dynamic when you need it.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -76,7 +76,7 @@ export default function chaincssPlugin(options: ChainCSSPluginOptions = {}): Plu
76
76
 
77
77
  // Default: process source files
78
78
  const isUserFile = id.includes('/src/') || id.includes('/components/');
79
- const isComponent = /\.(t|j)sx?$/.test(id);
79
+ const isComponent = /\.(t|j)sx?$/.test(id) || id.endsWith(".chain.ts") || id.endsWith(".chain.js");
80
80
 
81
81
  return isUserFile && isComponent;
82
82
  }