@unocss/core 66.2.3 → 66.3.1-beta.1
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/index.mjs +2 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -656,7 +656,7 @@ function definePreset(preset) {
|
|
|
656
656
|
return preset;
|
|
657
657
|
}
|
|
658
658
|
|
|
659
|
-
const version = "66.
|
|
659
|
+
const version = "66.3.1-beta.1";
|
|
660
660
|
|
|
661
661
|
const symbols = {
|
|
662
662
|
shortcutsNoMerge: "$$symbol-shortcut-no-merge",
|
|
@@ -739,9 +739,7 @@ class UnoGeneratorInternal {
|
|
|
739
739
|
const cacheKey = `${raw}${alias ? ` ${alias}` : ""}`;
|
|
740
740
|
if (this.cache.has(cacheKey))
|
|
741
741
|
return this.cache.get(cacheKey);
|
|
742
|
-
|
|
743
|
-
for (const p of this.config.preprocess)
|
|
744
|
-
current = p(raw);
|
|
742
|
+
const current = this.config.preprocess.reduce((acc, p) => p(acc) ?? acc, raw);
|
|
745
743
|
if (this.isBlocked(current)) {
|
|
746
744
|
this.blocked.add(raw);
|
|
747
745
|
this.cache.set(cacheKey, null);
|