Skip to content

How does Codegen work? #845

Answered by astahmer
osdiab asked this question in Q&A
Jun 27, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I don't think the prepare script helps with watching files, but there is some file watching in the postcss plugin which you are probably (?) using

it's done here

const deps = this.checkConfigDeps(configPath, configDeps)

tl;dr is: postcss plugin uses the Builder which finds a list of file dependencies for the panda.config.ts (from what was imported, recursively) and then checks that any of those config dependencies has changed whenever the postcss plugin notifies the builder that something has changed

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@osdiab
Comment options

Answer selected by osdiab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #842 on June 27, 2023 07:34.