chaincss 2.1.18 → 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.
- package/dist/plugins/vite.js +9 -11
- package/package.json +1 -1
- package/src/plugins/vite.ts +12 -12
package/dist/plugins/vite.js
CHANGED
|
@@ -3381,17 +3381,6 @@ const setManifest = (manifest) => {
|
|
|
3381
3381
|
configureServer(_server) {
|
|
3382
3382
|
server = _server;
|
|
3383
3383
|
log("Vite plugin initialized");
|
|
3384
|
-
setTimeout(() => {
|
|
3385
|
-
if (chainCount > 0) {
|
|
3386
|
-
console.log("");
|
|
3387
|
-
console.log("\u26D3\uFE0F ChainCSS \u2014 Dev Mode Ready");
|
|
3388
|
-
console.log(` \u{1F4E6} Static: ${staticCount || 0} styles \u2192 CSS`);
|
|
3389
|
-
console.log(` \u26A1 Dynamic: ${dynamicCount || 0} styles \u2192 JS runtime`);
|
|
3390
|
-
console.log(` \u{1F500} Hybrid: ${hybridCount || 0} styles \u2192 Auto-split`);
|
|
3391
|
-
console.log(` \u{1F4DD} Total: ${chainCount || 0} chain() calls found`);
|
|
3392
|
-
console.log("");
|
|
3393
|
-
}
|
|
3394
|
-
}, 1e3);
|
|
3395
3384
|
_server.watcher.on("change", (filePath) => {
|
|
3396
3385
|
if (filePath.includes("chaincss.config")) {
|
|
3397
3386
|
log("Config changed, clearing cache...");
|
|
@@ -3461,6 +3450,15 @@ const setManifest = (manifest) => {
|
|
|
3461
3450
|
if (isEntryFile && !source.includes("virtual:chaincss.css")) {
|
|
3462
3451
|
const bootstrapCode = generateBootstrapCode(generatedCSS);
|
|
3463
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
|
+
}
|
|
3464
3462
|
return {
|
|
3465
3463
|
code: `${bootstrapCode}
|
|
3466
3464
|
${source}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chaincss",
|
|
3
|
-
"version": "2.1.
|
|
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",
|
package/src/plugins/vite.ts
CHANGED
|
@@ -246,18 +246,7 @@ const setManifest = (manifest) => {
|
|
|
246
246
|
server = _server;
|
|
247
247
|
log('Vite plugin initialized');
|
|
248
248
|
|
|
249
|
-
|
|
250
|
-
setTimeout(() => {
|
|
251
|
-
if (chainCount > 0) {
|
|
252
|
-
console.log('');
|
|
253
|
-
console.log('⛓️ ChainCSS — Dev Mode Ready');
|
|
254
|
-
console.log(` 📦 Static: ${staticCount || 0} styles → CSS`);
|
|
255
|
-
console.log(` ⚡ Dynamic: ${dynamicCount || 0} styles → JS runtime`);
|
|
256
|
-
console.log(` 🔀 Hybrid: ${hybridCount || 0} styles → Auto-split`);
|
|
257
|
-
console.log(` 📝 Total: ${chainCount || 0} chain() calls found`);
|
|
258
|
-
console.log('');
|
|
259
|
-
}
|
|
260
|
-
}, 1000);
|
|
249
|
+
// Stats shown in transform hook after processing
|
|
261
250
|
|
|
262
251
|
// Watch for config changes
|
|
263
252
|
_server.watcher.on('change', (filePath) => {
|
|
@@ -354,6 +343,17 @@ const setManifest = (manifest) => {
|
|
|
354
343
|
const bootstrapCode = generateBootstrapCode(generatedCSS);
|
|
355
344
|
log(`Bootstrapping entry file: ${fileName} (${generatedCSS.length} bytes)`);
|
|
356
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
|
+
|
|
357
357
|
return {
|
|
358
358
|
code: `${bootstrapCode}\n${source}`,
|
|
359
359
|
map: null
|