use import/export in the frontend code
This commit is contained in:
parent
11ae7f857c
commit
702134b3b1
15 changed files with 51 additions and 64 deletions
|
@ -1,5 +1,5 @@
|
|||
const Raven = require('raven-js');
|
||||
const { unsupported } = require('./metrics');
|
||||
import Raven from 'raven-js';
|
||||
import { unsupported } from './metrics';
|
||||
|
||||
if (navigator.doNotTrack !== '1' && window.RAVEN_CONFIG) {
|
||||
Raven.config(window.SENTRY_ID, window.RAVEN_CONFIG).install();
|
||||
|
@ -17,6 +17,4 @@ if (
|
|||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
Raven
|
||||
};
|
||||
export { Raven };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue