You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foo-bar is not a valid export and will break subsequent imports. I'm not sure what the desired output should be, but perhaps the default export should be Pascal cased for the index file while the filenames remain kebab cased.
Run npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
Hey @scurker 👋,
Thank you for opening an issue. We'll get back to you as soon as we can.
Please, consider supporting us on Open Collective. We give a special attention to issues opened by backers.
If you use SVGR at work, you can also ask your company to sponsor us ❤️.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
🐛 Bug Report
Running
@svgr/cli
against a directory without-dir
and--filename-case kebab
generates an invalid index file.To Reproduce
Steps to reproduce the behavior:
Assuming a directory structure similar to this:
svgr icons --out-dir icons --filename-case kebab
would generate the followingindex
template:Expected behavior
foo-bar
is not a valid export and will break subsequent imports. I'm not sure what the desired output should be, but perhaps the default export should be Pascal cased for the index file while the filenames remain kebab cased.Run
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
Paste the results here:
The text was updated successfully, but these errors were encountered: