fallback-nudgeA runtime fallback whose classes were still collected.
csszyx check lists it.A name in angle brackets is a value the message fills in.
sz[csszyx] fallback-nudge: `sz` falls back to the runtime: <fallbackReason>.
help: <fallbackSuggestion>
note: the runtime still turns the value into classes.
docs: https://csszyx.com/e/fallback-nudge
sz-array-element[csszyx] fallback-nudge: This `sz` array element is an object literal with a runtime value, so the whole element is resolved at runtime.
help: use finite literal ternary branches where you can, or move the runtime values to `dynamic()`.
note: its classes are still collected, best-effort.
docs: https://csszyx.com/e/fallback-nudge
These values are worked out from the args:
<fallbackReason>: Why the value fell back, from the generated sz fallback matrix for shape.<fallbackSuggestion>: What to write instead, from the same matrix.Default: info under recommended, warn under atomic. Set it in csszyx.config: rules: { 'fallback-nudge': 'warn' }.
The values this diagnostic names.
| Name | Type | |
|---|---|---|
site | 'sz' | 'sz-array-element' | |
shape | 'call' | 'identifier' | 'import' | 'member' | 'other' | 'szv-factory' | 'variant' | optional |
detail | string | optional |
path | string | optional |