Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardReactbundler internals webpack viteSingle-choice MCQ

You enable code splitting with a dynamic `import('./Chart')` in a Webpack build. Beyond emitting a separate chunk file, what concrete mechanism does Webpack inject so the runtime can fetch and evaluate that chunk on demand, and what guarantees a module is evaluated only once even if two split points import it?

const Chart = React.lazy(() => import('./Chart'));