From a623b7fb035e94701ff1c06799e4737f3c60dddb Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 28 Aug 2018 14:27:01 +0800 Subject: [PATCH] remove rollbar --- config/config.js | 1 - package.json | 1 - src/global.js | 14 -------------- src/pages/document.ejs | 1 - 4 files changed, 17 deletions(-) delete mode 100644 src/global.js diff --git a/config/config.js b/config/config.js index 5fa04ed5..8008ef4c 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 8e035d03..0e79cd09 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 89b5b7f9..00000000 --- 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 b3f85181..a3644cbf 100644 --- a/src/pages/document.ejs +++ b/src/pages/document.ejs @@ -6,7 +6,6 @@ Ant Design Pro - -- GitLab