We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It shouldn't be hard to support the most common import variations in the examples:
import
import Pizza from 'pizza'; import { Pizza as Falafel, Coffee } from 'lunch'; import Lunch, { Pizza as Falafel, Coffee } from 'lunch';
There are two places where we need to add this:
react-styleguidist/loaders/examples-loader.js
Line 40 in b66bd10
We may want to use something like detect-import-require instead of a custom RegExp.
react-styleguidist/src/rsg-components/ReactExample/ReactExample.js
Lines 66 to 76 in b66bd10
rewrite-imports may be a good start, but it doesn't support multiline statements.
The text was updated successfully, but these errors were encountered:
60b47fc
sapegin
No branches or pull requests
It shouldn't be hard to support the most common
import
variations in the examples:There are two places where we need to add this:
react-styleguidist/loaders/examples-loader.js
Line 40 in b66bd10
We may want to use something like detect-import-require instead of a custom RegExp.
react-styleguidist/src/rsg-components/ReactExample/ReactExample.js
Lines 66 to 76 in b66bd10
rewrite-imports may be a good start,
but it doesn't support multiline statements.The text was updated successfully, but these errors were encountered: