Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScriptES module resolution algorithmSingle-choice MCQ

A module re-exports the same name from two different sources via star exports. What is the spec behavior of the resolution algorithm here?

// a.mjs: export const x = 1; // b.mjs: export const x = 2; // c.mjs: export * from './a.mjs'; export * from './b.mjs'; // d.mjs: import { x } from './c.mjs';