-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(artifacts): ArtifactMap #2646
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
it mostly makes it way easier to track (config) dependencies (= which
config.xxx
path change on HMR should trigger a new codegen for a given file) for each artifactstypings got improved,
map.getFile("xxx")
will suggest anyPossibleArtifact
(= anArtifactFileId
that might be generated given a combination of config flags likejsxFramework
,recipes
,syntax
..)when an
ArtifactFile
is generated, any otherArtifactFileId
used in theimports
(orimportTypes
) will also be used to transitively generated its (file) dependenciesIdeally, I'd like to find a way to make this
ArtifactMap
available in somehook
so that any user could use it as a (very minimal) template engine with thecode
method andcomputed
arguments of eachArtifactFile
but this might prove a challenge due to the@pandacss/types
package not knowing about theContext
from@pandacss/core