You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added support for TypeScript modules with the file extensions .mts and .cts:
Changed the function findUnusedExports option moduleGlob and the CLI command find-unused-exports argument --module-glob default value from "**/*.{mjs,cjs,js}" to "**/{!(*.d).mts,!(*.d).cts,*.{mjs,cjs,js}}"; .mts and .cts files (but not TypeScript definition files) are now recursively matched by default.
An import specifier path with the file extension .mjs that doesn’t match an existing file now resolves to a file at the same path with an .mts file extension, if it exists.
Minor
Enable TypeScript syntax when parsing .mts and .cts files with Babel, even when the project has no Babel config for TypeScript.
Renamed the snapshot import to assertSnapshot in tests.
Patch
Updated dependencies.
Avoid function findUnusedExports parameter destructuring to workaround a recently introduced TypeScript bug: microsoft/TypeScript#50286.