@bamboocss/generator 1.32.0 → 1.33.0
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.cjs +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -3917,9 +3917,9 @@ var Generator = class extends _bamboocss_core.Context {
|
|
|
3917
3917
|
* losing its reset rather than anything that reports itself.
|
|
3918
3918
|
*/
|
|
3919
3919
|
prunePreflight = (sheet, rendered) => {
|
|
3920
|
-
if (!this.config.prune?.preflight) return;
|
|
3921
3920
|
const { preflight } = this.config;
|
|
3922
|
-
|
|
3921
|
+
if (!(0, _bamboocss_core.prunesPreflight)(preflight)) return;
|
|
3922
|
+
const scope = (0, _bamboocss_shared.isObject)(preflight) ? preflight.scope : void 0;
|
|
3923
3923
|
const result = (0, _bamboocss_core.prunePreflight)({
|
|
3924
3924
|
target: sheet.layers.reset,
|
|
3925
3925
|
rendered,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context, Recipes, expandNestedCss, extractParentSelectors, extractTrailingPseudos, pruneKeyframes, prunePreflight, pruneTokenVars, stringify } from "@bamboocss/core";
|
|
1
|
+
import { Context, Recipes, expandNestedCss, extractParentSelectors, extractTrailingPseudos, pruneKeyframes, prunePreflight, pruneTokenVars, prunesPreflight, stringify } from "@bamboocss/core";
|
|
2
2
|
import { logger } from "@bamboocss/logger";
|
|
3
3
|
import { BambooError, capitalize, compact, cssVarRefs, dashCase, isBoolean, isObject, mapEntries, unionType, walkObject } from "@bamboocss/shared";
|
|
4
4
|
import { match } from "ts-pattern";
|
|
@@ -3891,9 +3891,9 @@ var Generator = class extends Context {
|
|
|
3891
3891
|
* losing its reset rather than anything that reports itself.
|
|
3892
3892
|
*/
|
|
3893
3893
|
prunePreflight = (sheet, rendered) => {
|
|
3894
|
-
if (!this.config.prune?.preflight) return;
|
|
3895
3894
|
const { preflight } = this.config;
|
|
3896
|
-
|
|
3895
|
+
if (!prunesPreflight(preflight)) return;
|
|
3896
|
+
const scope = isObject(preflight) ? preflight.scope : void 0;
|
|
3897
3897
|
const result = prunePreflight({
|
|
3898
3898
|
target: sheet.layers.reset,
|
|
3899
3899
|
rendered,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/generator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "The css generator for css bamboo",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"pluralize": "8.0.0",
|
|
39
39
|
"postcss": "8.5.26",
|
|
40
40
|
"ts-pattern": "5.9.0",
|
|
41
|
-
"@bamboocss/core": "1.
|
|
42
|
-
"@bamboocss/
|
|
43
|
-
"@bamboocss/
|
|
44
|
-
"@bamboocss/
|
|
45
|
-
"@bamboocss/
|
|
46
|
-
"@bamboocss/types": "1.
|
|
41
|
+
"@bamboocss/core": "1.33.0",
|
|
42
|
+
"@bamboocss/is-valid-prop": "^1.33.0",
|
|
43
|
+
"@bamboocss/logger": "1.33.0",
|
|
44
|
+
"@bamboocss/shared": "1.33.0",
|
|
45
|
+
"@bamboocss/token-dictionary": "1.33.0",
|
|
46
|
+
"@bamboocss/types": "1.33.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/pluralize": "0.0.33"
|