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

When TypeScript emits an ESM file with a default export of a value to `module: commonjs`, what guarantees ESM consumers can tell it apart from a legacy CJS module?

// source (ESM): export default 42; export const a = 1;