Explorar el Código

Make rollbar variable optional

偏右 hace 7 años
padre
commit
c9186043b1
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/rollbar.js

+ 1 - 2
src/rollbar.js

@@ -1,7 +1,6 @@
-import Rollbar from 'rollbar';
-
 // Track error by rollbar.com
 if (location.host === 'preview.pro.ant.design') {
+  const Rollbar = require('rollbar').default;
   Rollbar.init({
     accessToken: '033ca6d7c0eb4cc1831cf470c2649971',
     captureUncaught: true,