I think we have to pass the original span here to preserve the mapping. I expect import_react to be mapped from react and version to be mapped from version.
REPL, sourcemap visualizer
(Not a blocker for this PR)
Originally posted by @sapphi-red in #6091