Browse Source

remove rollbar

pull/2034/merge
afc163 8 years ago
committed by 陈帅
parent
commit
a623b7fb03
  1. 1
      config/config.js
  2. 1
      package.json
  3. 14
      src/global.js
  4. 1
      src/pages/document.ejs

1
config/config.js

@ -36,7 +36,6 @@ export default {
},
externals: {
'@antv/data-set': 'DataSet',
rollbar: 'rollbar',
},
ignoreMomentLocale: true,
lessLoaderOptions: {

1
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"
},

14
src/global.js

@ -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',
},
});
}

1
src/pages/document.ejs

@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ant Design Pro</title>
<link rel="icon" href="/favicon.png" type="image/x-icon">
<script src="https://cdn.bootcss.com/rollbar.js/2.4.0/rollbar.min.js"></script>
<script src="https://gw.alipayobjects.com/os/antv/assets/data-set/0.8.7/data-set.min.js"></script>
</head>
<body>

Loading…
Cancel
Save