Skip to content

Native ESM support, possibly requiring integration with ts-node #122

Closed
@cspotcode

Description

@cspotcode

In ts-node we released experimental support for native ECMAScript modules. To do this we needed to implement a custom resolve() loader hook. It is a copy-paste of node's built-in resolver, tweaked for our needs.

TypeStrong/ts-node#1007

Is native ESM support on your radar? Do you have thoughts on how best to implement it for tsconfig-paths? I expect we will need to coordinate, since node only supports a single loader hook.

I see that the compiler itself can perform these resolutions via ts.resolveModuleName. Do you use that internally, or do you do something else?

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