Skip to content

Add support for ".cts" and ".mts" files #249

@cowwoc

Description

@cowwoc

Please update the code to accept ".cts" and ".mts" files as discussed at microsoft/TypeScript#27957 (comment)

Currently, I am getting the following error:

ERROR: Unable to parse C:\Users\Gili\Documents\requirements.js\src\ArrayAsserter.mts: Unexpected token, expected "from" (2:0)

in a project that used to work just fine when the extension was .ts. I cannot use a .ts extension for reasons discussed in that other GitHub ticket.

Thank you.

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