Skip to content

Crash on new typescript file pattern .d.mts .d.cts #1032

Closed
@loynoir

Description

@loynoir

Expected Behavior

No error

Actual Behavior

$ rollup -c
./index.mjs → stdout...                                                                                          
[!] Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)                 
lib/a.d.mts (1:7)
1: export declare const value = "a";
          ^
Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)

Additional Information

Typescript have new file pattern .d.mts .d.cts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions