Show full path for location of error#11523
Conversation
gaearon
left a comment
There was a problem hiding this comment.
I don't think we want the full path. It can be very long.
I think we might want to special case index.js specifically.
|
We can also try stripping shared common ancestor directory from all lines in the stack. |
|
|
|
Alternative is to include app's root directory in element.__source and stripping that off the filename but that require changing babel-plugin-transform-react-jsx-source. |
|
We can't reliably detect app directory since people run Babel in all sorts of configurations. I think this is an interesting approach. I'm going to be away this week but I'll review when I get back. |
|
Sorry—we're stretched really thin and don't have the bandwidth for reviewing community PRs until much later this year 😞 |
|
No worries. I should have followed up sooner. |

Fix #11519