2 * Plugin that captures errors from Vue code and logs them to mw.errorLogger
5 install: function ( app ) {
7 * Track component errors that bubble up to the Vue.js runtime on the `error.vue` analytics
8 * event topic for one or more subscribers to send to an error logging service. Also log those
9 * errors to the console, which is the default behaviour of the Vue.js runtime.
11 * See also <https://phabricator.wikimedia.org/T249826>.
14 * @param {Error} error
16 app.config.errorHandler = function ( error ) {
17 mw.errorLogger.logError( error, 'error.vue' );
19 mw.log.error( error );