Minor Changes
-
a2fb5cc: - Add support for explicitly specifying config related files that should trigger a context reload on change.
We automatically track the config file and (transitive) files imported by the config file as much as possible, but
sometimes we might miss some. You can use this option as a workaround for those edge cases.Set the
dependencies
option inpanda.config.ts
to a glob or list of files.export default defineConfig({ // ... dependencies: ['path/to/files/**.ts'], })
-
Invoke
config:change
hook in more situations (when the--watch
flag is passed topanda codegen
,
panda cssgen
,panda ship
) -
Watch for more config options paths changes, so that the related artifacts will be regenerated a bit more reliably
(ex: updating theconfig.hooks
will now trigger a full regeneration ofstyled-system
)
-
Patch Changes
-
ea3f554: Add config validation:
- Check for duplicate between token & semanticTokens names
- Check for duplicate between recipes/patterns/slots names
- Check for token / semanticTokens paths (must end/contain 'value')
- Check for self/circular token references
- Check for missing tokens references
- Check for conditions selectors (must contain '&')
- Check for breakpoints units (must be the same)
You can set
validate: 'warn'
in your config to only warn about errors or set it tonone
to disable validation
entirely. -
Updated dependencies [5fcdeb7]
-
Updated dependencies [250b4d1]
-
Updated dependencies [f778d3e]
-
Updated dependencies [a2fb5cc]
- @pandacss/[email protected]
- @pandacss/[email protected]
- @pandacss/[email protected]
- @pandacss/[email protected]
- @pandacss/[email protected]