Replies: 1 comment
-
Discussed with @astahmer, and we've agreed to add support for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
We are looking into migrating an existing project from styled-components to panda. To make migration easy, we want to use the
template-literal
syntax. But we also want to write new components usingobject-literal
syntax, and move over gradually without having to make big modifications to hundreds of files. It would be nice to be able to generate both at the same time, maybe with different entrypoints, or just different export names.Problem Statement/Justification
To be able to use both syntaxes, it looks like we'd have to define two different config files, and run
panda codegen
twice, with different output folders + syntaxes.Proposed Solution or API
Probably the simplest way would be to allow a dictionary of syntax -> export name, e.g.
Which could then produce two exports, usable like:
Alternatives
Run
panda codegen
twice with two different configs? Or maybe there's a way of doing this in one go that I'm missing?Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions