Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.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

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaElsewherewhat it touches
KindImprovementsin v2.1.275,
You'll notice

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

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 →