chaincss 2.1.23 → 2.1.25

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/cli/index.js CHANGED
@@ -959,7 +959,7 @@ var init_atomic_optimizer = __esm({
959
959
  this.stats = { ...this.stats, ...data.stats };
960
960
  }
961
961
  if (this.options.verbose) {
962
- console.log(`\u2705 Cache loaded: ${this.atomicClasses.size} atomic classes`);
962
+ if (this.options.verbose) console.log(`\u2705 Cache loaded: ${this.atomicClasses.size} atomic classes`);
963
963
  }
964
964
  } catch (err) {
965
965
  if (this.options.verbose) {
@@ -994,7 +994,7 @@ var init_atomic_optimizer = __esm({
994
994
  };
995
995
  fs4.writeFileSync(this.options.cachePath, JSON.stringify(cache, null, 2), "utf8");
996
996
  if (this.options.verbose) {
997
- console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
997
+ if (this.options.verbose) console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
998
998
  }
999
999
  } catch (err) {
1000
1000
  if (this.options.verbose) {
@@ -3533,7 +3533,7 @@ var AtomicOptimizer = class {
3533
3533
  this.stats = { ...this.stats, ...data.stats };
3534
3534
  }
3535
3535
  if (this.options.verbose) {
3536
- console.log(`\u2705 Cache loaded: ${this.atomicClasses.size} atomic classes`);
3536
+ if (this.options.verbose) console.log(`\u2705 Cache loaded: ${this.atomicClasses.size} atomic classes`);
3537
3537
  }
3538
3538
  } catch (err) {
3539
3539
  if (this.options.verbose) {
@@ -3568,7 +3568,7 @@ var AtomicOptimizer = class {
3568
3568
  };
3569
3569
  fs.writeFileSync(this.options.cachePath, JSON.stringify(cache, null, 2), "utf8");
3570
3570
  if (this.options.verbose) {
3571
- console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
3571
+ if (this.options.verbose) console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
3572
3572
  }
3573
3573
  } catch (err) {
3574
3574
  if (this.options.verbose) {
package/dist/index.js CHANGED
@@ -4524,7 +4524,7 @@ var AtomicOptimizer = class {
4524
4524
  this.stats = { ...this.stats, ...data.stats };
4525
4525
  }
4526
4526
  if (this.options.verbose) {
4527
- console.log(`\u2705 Cache loaded: ${this.atomicClasses.size} atomic classes`);
4527
+ if (this.options.verbose) console.log(`\u2705 Cache loaded: ${this.atomicClasses.size} atomic classes`);
4528
4528
  }
4529
4529
  } catch (err) {
4530
4530
  if (this.options.verbose) {
@@ -4559,7 +4559,7 @@ var AtomicOptimizer = class {
4559
4559
  };
4560
4560
  fs3.writeFileSync(this.options.cachePath, JSON.stringify(cache, null, 2), "utf8");
4561
4561
  if (this.options.verbose) {
4562
- console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
4562
+ if (this.options.verbose) console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
4563
4563
  }
4564
4564
  } catch (err) {
4565
4565
  if (this.options.verbose) {
@@ -910,7 +910,7 @@ var AtomicOptimizer = class {
910
910
  this.stats = { ...this.stats, ...data.stats };
911
911
  }
912
912
  if (this.options.verbose) {
913
- console.log(`\u2705 Cache loaded: ${this.atomicClasses.size} atomic classes`);
913
+ if (this.options.verbose) console.log(`\u2705 Cache loaded: ${this.atomicClasses.size} atomic classes`);
914
914
  }
915
915
  } catch (err) {
916
916
  if (this.options.verbose) {
@@ -945,7 +945,7 @@ var AtomicOptimizer = class {
945
945
  };
946
946
  fs3.writeFileSync(this.options.cachePath, JSON.stringify(cache, null, 2), "utf8");
947
947
  if (this.options.verbose) {
948
- console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
948
+ if (this.options.verbose) console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
949
949
  }
950
950
  } catch (err) {
951
951
  if (this.options.verbose) {
@@ -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.25",
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",
@@ -205,7 +205,7 @@ export class AtomicOptimizer {
205
205
  }
206
206
 
207
207
  if (this.options.verbose) {
208
- console.log(`✅ Cache loaded: ${this.atomicClasses.size} atomic classes`);
208
+ if (this.options.verbose) console.log(`✅ Cache loaded: ${this.atomicClasses.size} atomic classes`);
209
209
  }
210
210
 
211
211
  } catch (err) {
@@ -246,7 +246,7 @@ export class AtomicOptimizer {
246
246
  fs.writeFileSync(this.options.cachePath, JSON.stringify(cache, null, 2), 'utf8');
247
247
 
248
248
  if (this.options.verbose) {
249
- console.log(`💾 Cache saved: ${this.atomicClasses.size} atomic classes`);
249
+ if (this.options.verbose) console.log(`💾 Cache saved: ${this.atomicClasses.size} atomic classes`);
250
250
  }
251
251
  } catch (err) {
252
252
  if (this.options.verbose) {
@@ -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
  }