diff --git a/config/config.js b/config/config.js index 5fa04ed522ae6241f583320c8228f027cea7d5b6..8008ef4cce8df03562679fa15fc817017bc1158d 100644 --- a/config/config.js +++ b/config/config.js @@ -36,7 +36,6 @@ export default { }, externals: { '@antv/data-set': 'DataSet', - rollbar: 'rollbar', }, ignoreMomentLocale: true, lessLoaderOptions: { diff --git a/package.json b/package.json index 8e035d0371207f75c394080348964dda13bc6d44..0e79cd09c0c1cb1324346d96268f19639f63bb79 100755 --- a/package.json +++ b/package.json @@ -43,7 +43,6 @@ "react-copy-to-clipboard": "^5.0.1", "react-document-title": "^2.0.3", "react-fittext": "^1.0.0", - "rollbar": "^2.4.2", "setprototypeof": "^1.1.0", "url-polyfill": "^1.0.13" }, diff --git a/src/global.js b/src/global.js deleted file mode 100644 index 89b5b7f94c0ac1d66db6135abf3bd5d73164812e..0000000000000000000000000000000000000000 --- a/src/global.js +++ /dev/null @@ -1,14 +0,0 @@ -import Rollbar from 'rollbar'; - -// Track error by rollbar.com -if (window.location.host === 'preview.pro.ant.design') { - Rollbar.init({ - accessToken: '033ca6d7c0eb4cc1831cf470c2649971', - captureUncaught: true, - captureUnhandledRejections: true, - hostWhiteList: ['ant.design'], - payload: { - environment: 'production', - }, - }); -} diff --git a/src/pages/document.ejs b/src/pages/document.ejs index b3f85181e9150e4559b53ada84caeca40e13b347..a3644cbfecda3154b80a8b4b7ef6e3738f8c6b77 100644 --- a/src/pages/document.ejs +++ b/src/pages/document.ejs @@ -6,7 +6,6 @@ Ant Design Pro -