Replace Rollbar UMD with regular import

This commit is contained in:
Fabio Berger
2018-10-10 16:06:32 +02:00
parent 6c9f7839c3
commit 0fd158ac64
3 changed files with 44 additions and 3 deletions

View File

@@ -58,6 +58,7 @@
"react-typist": "^2.0.4",
"redux": "^3.6.0",
"redux-devtools-extension": "^2.13.2",
"rollbar": "^2.4.7",
"semver-sort": "0.0.4",
"styled-components": "^3.3.0",
"thenby": "^1.2.3",

View File

@@ -1,4 +1,5 @@
import { logUtils } from '@0xproject/utils';
import Rollbar = require('rollbar');
import { configs } from 'ts/utils/configs';
import { constants } from 'ts/utils/constants';
import { utils } from 'ts/utils/utils';
@@ -36,8 +37,8 @@ const rollbarConfig = {
'SecurityError (DOM Exception 18)',
],
};
import Rollbar = require('../../public/js/rollbar.umd.min.js');
const rollbar = Rollbar.init(rollbarConfig);
const rollbar = new Rollbar(rollbarConfig);
export const errorReporter = {
report(err: Error): void {