{"version":"2.1.275","anchor":"file-extension-map-extended-cjs-mts-cts","canonical_anchor":"file-extension-map-extended-cjs-mts-cts","heading":"File extension map extended: .cjs, .mts, .cts","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275\/e\/file-extension-map-extended-cjs-mts-cts","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.275","markdown":"### File extension map extended: .cjs, .mts, .cts\n\nFile extension detection now recognizes .cjs, .mts, and .cts\n\n**What**\n\nThe map used to detect a file's language from its extension now includes `.cjs` (mapped to JavaScript) and `.mts` and `.cts` (both mapped to TypeScript), alongside the existing `.jsx`, `.js`, and `.mjs` entries.\n\n**Why**\n\nThis lets Claude Code correctly recognize these CommonJS and TypeScript module file extensions wherever the language is used, such as syntax highlighting or file-type-aware behavior.\n\n- Area: Elsewhere\n- Names: `.cjs`, `.mts`, `.cts`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}