Browser vs Node Loading
0 questions
Two hosts, two loaders: browsers need module-type script tags, correct MIME types and CORS, with import maps for bare specifiers; Node needs the type field or .mjs/.cjs plus an exports map. Interviewers ask because code that runs in one and fails in the other is a weekly occurrence, and extensionless imports are a classic culprit.
questions
0 questions