Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptESM CJS interopSingle-choice MCQ

Under `module: nodenext`, what does `tsc` emit for a `.cts` (CommonJS) file that statically imports a pure-ESM `.mts` dependency, and what is the runtime risk?

// m.mts: export const z = 1; // c.cts: import { z } from "./m.mjs"; console.log(z);