Skip to content
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

Generate an index.js #84

Open
mrvisser opened this issue Feb 10, 2021 · 1 comment
Open

Generate an index.js #84

mrvisser opened this issue Feb 10, 2021 · 1 comment

Comments

@mrvisser
Copy link

I think it would improve developer experience if there was an index file where each icon was exported, as opposed to all default exports.

At least for VSCode, I can start typing ServerNe..., then VSCode will suggest the icon, then I hit enter and it automatically adds the import statement. This doesn't work unfortunately with default exports.

Would you accept a PR that generates an index file that exports each icon?

@ianstormtaylor
Copy link

ianstormtaylor commented Sep 16, 2021

Please reconsider this @levrik! (It seems it was removed in 07ec6a1?) This library is perfect, but not having decent autocomplete is the only thing that would prevent me from using it.

If it's a bundle size concern I think you could just explain how to ensure small sizes with treeshaking? I believe other icon libraries do this (like MUI).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants