-
-
Notifications
You must be signed in to change notification settings - Fork 303
load variables from other files #170
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
Comments
May be related to this issue: #33 |
I'm having the same problem: I have a bunch of string constants shared across many files and docgen (understandably) does not pick up their values when I use them in propType declarations. I think this use case is simpler than #33 and could probably be fixed by supplying docgen with a map of constants and doing a search-replace for them in AST data before emitting it. |
+1, this breaks rendering in react-styleguidist too :( |
Duplicate of #33 |
We have a lot of our common variables (sizes, colors, etc) all defined in a single file. I like to reference these when building out propTypes. Currently docgen (via styleguidist) does not pick up these variables as they are all from an external file. It would be nice if there was a way to teach docgen to look at this variable file or similar. I'm going to see what I can figure out, but figured it was worth posting this in case anyone has had a similar issue and has already found a solution.
The text was updated successfully, but these errors were encountered: