Skip to content

[DevTools] Named hooks compatibility for create-react-app DEV mode #21868

@bvaughn

Description

@bvaughn

Something about the source maps config causes problems for a simple create-react-app running in DEV mode. Column numbers are always reported as 0 (by 'source-maps') which causes the AST node matching to fail so hook names can't be located. We should really fix this, since a lot of people use create-react-app for prototyping.

Note that source maps work correctly in production builds.

Repro: https://github.com/bvaughn/test-named-hooks

create-react-app bug report: facebook/create-react-app#11204

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions