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
Current behavior
Some imports are not rewritten correctly and produce naming collisions.
Looks like the logic in this file does not handle unique identifiers for all cases: https://github.com/styleguidist/react-styleguidist/blob/3469cbba172d9f81657b388dbffbb8fd5dd7fba4/src/client/utils/rewriteImports.ts
These imports:
import Demo from './demo1/component.js'; import Demo2 from './demo2/component.js'; <Button><Demo /><Demo2 /></Button>
Get transformed into:
const component_js$0 = require('./demo1/component.js'); const Demo = component_js$0.default || component_js$0; const component_js$0 = require('./demo2/component.js'); const Demo2 = component_js$0.default || component_js$0; React.createElement( Button, null, React.createElement( Demo, null ), React.createElement( Demo2, null ) )
To reproduce
Demo here: https://github.com/dustinsoftware/styleguidist-example/
Expected behavior
Unique identifier names are used.
The text was updated successfully, but these errors were encountered:
Feel free to send a pull request with a fix.
This will also go away after #1553.
Sorry, something went wrong.
b03c207
🎉 This issue has been resolved in version 11.0.5 🎉
The release is available on:
Your semantic-release bot 📦🚀
No branches or pull requests
Current behavior
Some imports are not rewritten correctly and produce naming collisions.
Looks like the logic in this file does not handle unique identifiers for all cases: https://github.com/styleguidist/react-styleguidist/blob/3469cbba172d9f81657b388dbffbb8fd5dd7fba4/src/client/utils/rewriteImports.ts
These imports:
Get transformed into:
To reproduce
Demo here: https://github.com/dustinsoftware/styleguidist-example/
Expected behavior
Unique identifier names are used.
The text was updated successfully, but these errors were encountered: