chaincss 2.1.27 → 2.1.29
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 +0 -4
- package/dist/compiler/index.js +0 -4
- package/dist/index.js +0 -4
- package/dist/plugins/vite.js +0 -4
- package/package.json +1 -1
- package/src/compiler/atomic-optimizer.ts +4 -4
package/dist/cli/index.js
CHANGED
|
@@ -994,7 +994,6 @@ 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
|
-
if (this.options.verbose) console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
|
|
998
997
|
}
|
|
999
998
|
} catch (err) {
|
|
1000
999
|
if (this.options.verbose) {
|
|
@@ -1253,7 +1252,6 @@ ${rules}}
|
|
|
1253
1252
|
const componentClassName = `c-${cleanName}-${componentHash}`;
|
|
1254
1253
|
const selector = `.${componentClassName}`;
|
|
1255
1254
|
if (this.options.verbose) {
|
|
1256
|
-
if (this.options.verbose) console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
1257
1255
|
}
|
|
1258
1256
|
let classList = [componentClassName];
|
|
1259
1257
|
let localRules = "";
|
|
@@ -1276,14 +1274,12 @@ ${rules}}
|
|
|
1276
1274
|
this.atomicMap[`${prop}:${stringValue}`] = atomicClass;
|
|
1277
1275
|
this.stats.atomicStyles++;
|
|
1278
1276
|
if (this.options.verbose) {
|
|
1279
|
-
if (this.options.verbose) console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
1280
1277
|
}
|
|
1281
1278
|
} else {
|
|
1282
1279
|
localRules += ` ${kebabProp}: ${stringValue};
|
|
1283
1280
|
`;
|
|
1284
1281
|
this.stats.standardStyles++;
|
|
1285
1282
|
if (this.options.verbose) {
|
|
1286
|
-
if (this.options.verbose) console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
1287
1283
|
}
|
|
1288
1284
|
}
|
|
1289
1285
|
}
|
package/dist/compiler/index.js
CHANGED
|
@@ -3568,7 +3568,6 @@ 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
|
-
if (this.options.verbose) console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
|
|
3572
3571
|
}
|
|
3573
3572
|
} catch (err) {
|
|
3574
3573
|
if (this.options.verbose) {
|
|
@@ -3827,7 +3826,6 @@ ${rules}}
|
|
|
3827
3826
|
const componentClassName = `c-${cleanName}-${componentHash}`;
|
|
3828
3827
|
const selector = `.${componentClassName}`;
|
|
3829
3828
|
if (this.options.verbose) {
|
|
3830
|
-
if (this.options.verbose) console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
3831
3829
|
}
|
|
3832
3830
|
let classList = [componentClassName];
|
|
3833
3831
|
let localRules = "";
|
|
@@ -3850,14 +3848,12 @@ ${rules}}
|
|
|
3850
3848
|
this.atomicMap[`${prop}:${stringValue}`] = atomicClass;
|
|
3851
3849
|
this.stats.atomicStyles++;
|
|
3852
3850
|
if (this.options.verbose) {
|
|
3853
|
-
if (this.options.verbose) console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
3854
3851
|
}
|
|
3855
3852
|
} else {
|
|
3856
3853
|
localRules += ` ${kebabProp}: ${stringValue};
|
|
3857
3854
|
`;
|
|
3858
3855
|
this.stats.standardStyles++;
|
|
3859
3856
|
if (this.options.verbose) {
|
|
3860
|
-
if (this.options.verbose) console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
3861
3857
|
}
|
|
3862
3858
|
}
|
|
3863
3859
|
}
|
package/dist/index.js
CHANGED
|
@@ -4559,7 +4559,6 @@ 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
|
-
if (this.options.verbose) console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
|
|
4563
4562
|
}
|
|
4564
4563
|
} catch (err) {
|
|
4565
4564
|
if (this.options.verbose) {
|
|
@@ -4818,7 +4817,6 @@ ${rules}}
|
|
|
4818
4817
|
const componentClassName = `c-${cleanName}-${componentHash}`;
|
|
4819
4818
|
const selector = `.${componentClassName}`;
|
|
4820
4819
|
if (this.options.verbose) {
|
|
4821
|
-
if (this.options.verbose) console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
4822
4820
|
}
|
|
4823
4821
|
let classList = [componentClassName];
|
|
4824
4822
|
let localRules = "";
|
|
@@ -4841,14 +4839,12 @@ ${rules}}
|
|
|
4841
4839
|
this.atomicMap[`${prop}:${stringValue}`] = atomicClass;
|
|
4842
4840
|
this.stats.atomicStyles++;
|
|
4843
4841
|
if (this.options.verbose) {
|
|
4844
|
-
if (this.options.verbose) console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
4845
4842
|
}
|
|
4846
4843
|
} else {
|
|
4847
4844
|
localRules += ` ${kebabProp}: ${stringValue};
|
|
4848
4845
|
`;
|
|
4849
4846
|
this.stats.standardStyles++;
|
|
4850
4847
|
if (this.options.verbose) {
|
|
4851
|
-
if (this.options.verbose) console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
4852
4848
|
}
|
|
4853
4849
|
}
|
|
4854
4850
|
}
|
package/dist/plugins/vite.js
CHANGED
|
@@ -945,7 +945,6 @@ 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
|
-
if (this.options.verbose) console.log(`\u{1F4BE} Cache saved: ${this.atomicClasses.size} atomic classes`);
|
|
949
948
|
}
|
|
950
949
|
} catch (err) {
|
|
951
950
|
if (this.options.verbose) {
|
|
@@ -1204,7 +1203,6 @@ ${rules}}
|
|
|
1204
1203
|
const componentClassName = `c-${cleanName}-${componentHash}`;
|
|
1205
1204
|
const selector = `.${componentClassName}`;
|
|
1206
1205
|
if (this.options.verbose) {
|
|
1207
|
-
if (this.options.verbose) console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
1208
1206
|
}
|
|
1209
1207
|
let classList = [componentClassName];
|
|
1210
1208
|
let localRules = "";
|
|
@@ -1227,14 +1225,12 @@ ${rules}}
|
|
|
1227
1225
|
this.atomicMap[`${prop}:${stringValue}`] = atomicClass;
|
|
1228
1226
|
this.stats.atomicStyles++;
|
|
1229
1227
|
if (this.options.verbose) {
|
|
1230
|
-
if (this.options.verbose) console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
1231
1228
|
}
|
|
1232
1229
|
} else {
|
|
1233
1230
|
localRules += ` ${kebabProp}: ${stringValue};
|
|
1234
1231
|
`;
|
|
1235
1232
|
this.stats.standardStyles++;
|
|
1236
1233
|
if (this.options.verbose) {
|
|
1237
|
-
if (this.options.verbose) console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
1238
1234
|
}
|
|
1239
1235
|
}
|
|
1240
1236
|
}
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
249
|
+
// Cache saved (silent)
|
|
250
250
|
}
|
|
251
251
|
} catch (err) {
|
|
252
252
|
if (this.options.verbose) {
|
|
@@ -590,7 +590,7 @@ export class AtomicOptimizer {
|
|
|
590
590
|
const selector = `.${componentClassName}`;
|
|
591
591
|
|
|
592
592
|
if (this.options.verbose) {
|
|
593
|
-
|
|
593
|
+
// Optimizing component (silent)
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
let classList: string[] = [componentClassName];
|
|
@@ -629,7 +629,7 @@ export class AtomicOptimizer {
|
|
|
629
629
|
this.stats.atomicStyles++;
|
|
630
630
|
|
|
631
631
|
if (this.options.verbose) {
|
|
632
|
-
|
|
632
|
+
// [Atomic] (silent)
|
|
633
633
|
}
|
|
634
634
|
} else {
|
|
635
635
|
// It stays local to the component
|
|
@@ -637,7 +637,7 @@ export class AtomicOptimizer {
|
|
|
637
637
|
this.stats.standardStyles++;
|
|
638
638
|
|
|
639
639
|
if (this.options.verbose) {
|
|
640
|
-
|
|
640
|
+
// [Standard] (silent)
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
}
|