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

Extensionless imports #17

Open
c-vetter opened this issue May 9, 2024 · 0 comments
Open

Extensionless imports #17

c-vetter opened this issue May 9, 2024 · 0 comments

Comments

@c-vetter
Copy link

c-vetter commented May 9, 2024

Finding myself unwilling to use the .js extension for non-js files, I import without file extensions.
Obviously that's a problem when using tsimp, or so I thought, according to the Readme.

But I can just TSIMP_DIAG=ignore the related messages away, and my code runs without apparent issue.
Since my code is linted separately, that shouldn't be a problem most of the time, but it still feels very dirty (because it is).
Officially, there's currently no better way, right?

Are there any plans to support at least "moduleResolution": "bundler" without extensions?

I have to admit, I don't really get the reasoning given in the Readme, mostly because it works anyway.
Although, from my understanding, it probably shouldn't. And that gives me pause.
This part seems related to #16 but I felt our situations and desired outcomes are sufficiently different to warrant a separate issue.

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

1 participant