-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: allows to choose the extension of importation #49
base: main
Are you sure you want to change the base?
Conversation
Hey, From a personal view, the whole file extension handling and naming is simply messed up in the ecosystem, and it does not make sense to have imports from not existing files. |
Thanks for your feedback, @sebastianwessel. I'd like to clarify the specific issue I'm facing in my Expo (React Native) project with TypeScript. In projects where TypeScript compiles to JavaScript, using The issue arises with the files generated by this library. Here's an example of the error I'm encountering:
This occurs because the library is generating import statements with To address this, could we make the import extension configurable? We could keep This would improve the library's usability across different project setups. We could add documentation explaining when to use each option. Does this approach sound reasonable? I'm open to discussing alternative solutions. |
Ah ok. @hammo92 what do you think? |
I think this is the right approach, cleaner code and more flexible. |
No description provided.