index.tsx 513 B

12345678910111213141516171819202122
  1. import "core-js/stable";
  2. import "regenerator-runtime/runtime";
  3. import * as React from "react";
  4. import * as ReactDOM from "react-dom";
  5. import App from "./App";
  6. import { SetupSentry } from "shared/error_handling/sentry/setup";
  7. import { EnableErrorHandling } from "shared/error_handling/window_error_handling";
  8. declare global {
  9. interface Window {
  10. analytics: any;
  11. }
  12. }
  13. if (process.env.ENABLE_SENTRY) {
  14. SetupSentry();
  15. }
  16. EnableErrorHandling();
  17. ReactDOM.render(<App />, document.getElementById("output"));