If you don’t like to fix/add my request, simply say won't fox, but don’t close the issue with simple/not related answer, as @aweary did. React is pro library, you are pro, so act like pros.
I believe it fetches a sourcemap and then finds the information in it. I don’t see us including a sourcemap parser into React itself, and definitely not in production.
Do you want this in development or in production?
I think in general, the browsers are best-positioned to fix this by providing a stack trace with sourcemaps applied. I don’t know if there is an existing proposal for this.
@dehghani-mehdi this information is only available when providing a sourcemap to the browser via your compiler (I assume webpack). You will not be able to access this information on a production site, as no sourcemap is provided when compiling for production.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.
@gaearon any update? do you need more info?
I believe it fetches a sourcemap and then finds the information in it. I don’t see us including a sourcemap parser into React itself, and definitely not in production.
Do you want this in development or in production?
I think in general, the browsers are best-positioned to fix this by providing a stack trace with sourcemaps applied. I don’t know if there is an existing proposal for this.
@dehghani-mehdi this information is only available when providing a sourcemap to the browser via your compiler (I assume webpack). You will not be able to access this information on a production site, as no sourcemap is provided when compiling for production.
See this: https://what-problem-does-it-solve.com/webpack/sourcemaps.html
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.