@bamboocss/types 1.18.0 → 1.20.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/config.d.ts +14 -2
- package/package.json +2 -2
package/dist/config.d.ts
CHANGED
|
@@ -286,6 +286,12 @@ interface CssgenOptions {
|
|
|
286
286
|
* The token layer declares every token in the theme, and an app typically uses a small
|
|
287
287
|
* fraction of them, so this is usually the largest single saving in render-blocking css.
|
|
288
288
|
*
|
|
289
|
+
* The same walk also drops an `@property` registration for a custom property the finished
|
|
290
|
+
* stylesheet neither declares nor reads. A preset registers what its utilities compose —
|
|
291
|
+
* filters, gradients, transforms, transitions — and ships the whole set regardless of what
|
|
292
|
+
* the app draws, so an app using none of them carries all of it for nothing. Registrations
|
|
293
|
+
* declared through `globalVars` are yours and are never removed.
|
|
294
|
+
*
|
|
289
295
|
* It is opt-in because reachability cannot be proven for every reference. `token()` and
|
|
290
296
|
* `token.var()` calls are read out of the source, as is any literal `var(--x)` written
|
|
291
297
|
* by hand. Three things stay invisible: a token named by a path the source does not
|
|
@@ -310,7 +316,13 @@ interface CssgenOptions {
|
|
|
310
316
|
* which keeps the whole scale whether or not the app uses it — on the default preset
|
|
311
317
|
* that is roughly a third of what survives pruning. There is no opt-out.
|
|
312
318
|
*
|
|
313
|
-
*
|
|
319
|
+
* Setting this to `false` keeps every token declaration, but still drops the `@property`
|
|
320
|
+
* registrations. Those are not tokens — nothing hands one to javascript and none appear
|
|
321
|
+
* in the `token()` surface — so the reachability problem above does not apply to them,
|
|
322
|
+
* and opting out of token pruning should not mean shipping a preset's whole filter and
|
|
323
|
+
* gradient set for nothing.
|
|
324
|
+
*
|
|
325
|
+
* @default true
|
|
314
326
|
*/
|
|
315
327
|
pruneUnusedTokens?: boolean
|
|
316
328
|
/**
|
|
@@ -326,7 +338,7 @@ interface CssgenOptions {
|
|
|
326
338
|
* is deliberately over-inclusive: keeping an unused keyframe costs bytes, dropping a
|
|
327
339
|
* used one breaks the animation.
|
|
328
340
|
*
|
|
329
|
-
* @default
|
|
341
|
+
* @default true
|
|
330
342
|
*/
|
|
331
343
|
pruneUnusedKeyframes?: boolean
|
|
332
344
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "The types for css bamboo",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"ncp": "2.0.0",
|
|
33
33
|
"pkg-types": "2.3.0",
|
|
34
34
|
"ts-morph": "28.0.0",
|
|
35
|
-
"@bamboocss/extractor": "1.
|
|
35
|
+
"@bamboocss/extractor": "1.20.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "tsx scripts/watch.ts",
|