Skip to content

Extensionless imports #17

Open
Open
@c-vetter

Description

@c-vetter

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions