chaincss 2.1.17 → 2.1.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.
@@ -3450,6 +3450,15 @@ const setManifest = (manifest) => {
3450
3450
  if (isEntryFile && !source.includes("virtual:chaincss.css")) {
3451
3451
  const bootstrapCode = generateBootstrapCode(generatedCSS);
3452
3452
  log(`Bootstrapping entry file: ${fileName} (${generatedCSS.length} bytes)`);
3453
+ if (chainCount > 0) {
3454
+ console.log("");
3455
+ console.log("\u26D3\uFE0F ChainCSS \u2014 Ready");
3456
+ console.log(` \u{1F4E6} Static: ${staticCount} styles \u2192 CSS`);
3457
+ console.log(` \u26A1 Dynamic: ${dynamicCount} styles \u2192 JS runtime`);
3458
+ console.log(` \u{1F500} Hybrid: ${hybridCount} styles \u2192 Auto-split`);
3459
+ console.log(` \u{1F4DD} Total: ${chainCount} chain() calls detected`);
3460
+ console.log("");
3461
+ }
3453
3462
  return {
3454
3463
  code: `${bootstrapCode}
3455
3464
  ${source}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chaincss",
3
- "version": "2.1.17",
3
+ "version": "2.1.19",
4
4
  "description": "ChainCSS v3.0 - 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",
@@ -246,6 +246,8 @@ const setManifest = (manifest) => {
246
246
  server = _server;
247
247
  log('Vite plugin initialized');
248
248
 
249
+ // Stats shown in transform hook after processing
250
+
249
251
  // Watch for config changes
250
252
  _server.watcher.on('change', (filePath) => {
251
253
  if (filePath.includes('chaincss.config')) {
@@ -341,6 +343,17 @@ const setManifest = (manifest) => {
341
343
  const bootstrapCode = generateBootstrapCode(generatedCSS);
342
344
  log(`Bootstrapping entry file: ${fileName} (${generatedCSS.length} bytes)`);
343
345
 
346
+ // Show stats after processing all files
347
+ if (chainCount > 0) {
348
+ console.log('');
349
+ console.log('⛓️ ChainCSS — Ready');
350
+ console.log(` 📦 Static: ${staticCount} styles → CSS`);
351
+ console.log(` ⚡ Dynamic: ${dynamicCount} styles → JS runtime`);
352
+ console.log(` 🔀 Hybrid: ${hybridCount} styles → Auto-split`);
353
+ console.log(` 📝 Total: ${chainCount} chain() calls detected`);
354
+ console.log('');
355
+ }
356
+
344
357
  return {
345
358
  code: `${bootstrapCode}\n${source}`,
346
359
  map: null