Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.275 ·

Module resolution now also tries .mts/.cts for .mjs/.cjs

Import resolution now also tries .mts and .cts file extensions for .mjs and .cjs imports

You'll notice Improvements
JSON All of v2.1.275
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.275,
ImprovementsSection of the release
What

When resolving an import path, Claude Code's module resolver now also tries a .mts file if the import ends in .mjs, and a .cts file if it ends in .cjs. This joins the existing mapping that tries .tsx for a .jsx import.

Why

This lets imports resolve correctly to TypeScript source files (.mts, .cts) even when the import specifier uses the compiled JavaScript extension (.mjs, .cjs).

Read from
Names in the bundle.mts.cts
What the documentation says

See this entry in the whole of v2.1.275 →

Feedback