Remove Vue.util.formatComponentName usage as it's not present on production #848
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As you can see on the code below,
Vue.util.formatComponent
is not present on production bundles, soraven
shouldn't depend on it for getting component names:https://github.com/vuejs/vue/blob/51e7608528c2e958e3705425bad3d6325ce97765/src/core/util/debug.js#L7
That causes sentry to not capture any error at all. It instead throws this error on console:
![screen shot 2017-02-06 at 11 00 44](https://cloud.githubusercontent.com/assets/1817719/22648177/8b74f862-ec5c-11e6-81de-4da7d3598c89.png)
This function is not subject to many changes, so I think we can just copy its content and update if needed on the future. What do you guys think?