facebook / react

The library for web and native user interfaces.
https://react.dev
MIT License
228.92k stars 46.84k forks source link

Add `x_google_ignoreList` (Ignore-listing code) support to sourcemaps #27774

Closed 0xdevalias closed 8 months ago

0xdevalias commented 11 months ago

Introduce the x_google_ignoreList extension in the sourcemaps generated by this project. This will facilitate a more streamlined debugging experience in Chrome (and other supporting browsers) by automatically filtering out framework and dependency code.

Benefit

Implementing x_google_ignoreList in the sourcemaps will align this project with modern web development practices, offering a more focused and efficient debugging experience for developers using Chrome DevTools. This change will particularly benefit those who regularly engage in debugging complex applications with numerous dependencies.

Background Context

See Also

Tangentially related issues for improving modern debugging support:

0xdevalias commented 11 months ago
sebmarkbage commented 8 months ago

Was added in https://github.com/facebook/react/pull/28310 but it doesn't really help much since it's not forwarded by most bundlers anyway atm.