Skip to content

Allow resolveFullPaths to add extension for module subpath imports #256

Description

@Sophos-Elias-Vasylenko

Subpath imports don't work for me without adding .js extension. I would like resolveFullPaths too add this automatically, as it does for relative paths, so that I can write e.g. import * from "package/file" instead of import * from "package/file.js"

I suppose this would require tsc-alias to try to resolve the package to see what the extension, if any, is supposed to be? Or if it's e.g. a subpath to a directory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions