import Bugsnag from '@bugsnag/browser' import ReactDOM from 'react-dom' import React from 'react' import { apiKey, endpoints, plugins } from './lib/config' Bugsnag.start({ apiKey, endpoints, plugins }) var ErrorBoundary = Bugsnag.getPlugin('react')!.createErrorBoundary(); function onError () { } function ErrorView () { return

There was an error

} function MainView () { return

Hello world

} var text = function () { throw new Error('borked') } function App () { return } ReactDOM.render(, document.getElementById('root'))