Closed
Description
Source maps generated for a create-react-app project in DEV mode seem slightly broken. Specifically, translating from a position in the (compiled) source to the original source returns a valid line number but it always returns an invalid column number of 0. (Production source maps are fine.)
Source map translation is being done with the source-map package.
This breaks an upcoming React DevTools feature ("named hooks") so I've filed an issue in the React repo with more details:
facebook/react#21868
create-react-app version: 4.0.3
Repro project: https://github.com/bvaughn/test-named-hooks