diff --git a/packages/vue-cli-plugin-uni/lib/error-reporting.js b/packages/vue-cli-plugin-uni/lib/error-reporting.js index 025bc660e21c03716a6ad76b97ff7ff8db29af64..104058449910fb6d43d1e3323b0b1e0b99e8a7a8 100644 --- a/packages/vue-cli-plugin-uni/lib/error-reporting.js +++ b/packages/vue-cli-plugin-uni/lib/error-reporting.js @@ -40,7 +40,7 @@ class ErrorReport { cp: process.env.UNI_PLATFORM, hx: this.isInHBuilderX ? 1 : 0, et: type, - em: err.replace(/(\().+(node_modules[\/\\]@dcloudio)/g, '$1$2') + em: err.replace(/(\().+?(node_modules[\/\\]@dcloudio)/g, '$1$2') }); var hash = this._getMD5(data); @@ -109,7 +109,7 @@ Object.assign(ErrorReport.prototype, { }); function report(type, err) { - ErrorReport.instance.report(type, err); + //ErrorReport.instance.report(type, err); } global.__error_reporting__ = report