diff --git a/src/rollbar.js b/src/rollbar.js index b62df99666bec2e8844818812c9e80ff581db94c..8bf19d6801b96a13bb68775f1b389fcfdccd0b4d 100644 --- a/src/rollbar.js +++ b/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,