Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Cannot find TypeScript module with .js specifier in a TypeScript file #9

@motss

Description

@motss

I'm not sure if this should be supported but it'd great to be able to import a TypeScript file with .js specifier in a TypeScript file, like so:

// module-a.ts
export const a = 100;

// main.ts
// import { a } from './module-a'; // it works without .js specifier
import { a } from './module-a.js'

console.debug(a); // 100

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