Explorar o código

Make rollbar variable optional

偏右 %!s(int64=7) %!d(string=hai) anos
pai
achega
c9186043b1
Modificáronse 1 ficheiros con 1 adicións e 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,