Skip to content

Allow extensions in local import paths (again) #11901

@mavericken

Description

@mavericken

Between TypeScript 2.0 Beta and now, ability to specify the file extension in relative path imports is gone. It appears to have been done intentionally.

Example, we used to be able to this.

import {view} from './front.tsx'
import {store} from './store'

But now:
image

For people who don't need the feature, they can simply not use it.
For people who do need it, its removal substantially complicates things.

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