index.tsx 532 B

1234567891011121314151617181920212223
  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. Intercom: any;
  12. }
  13. }
  14. if (process.env.ENABLE_SENTRY) {
  15. SetupSentry();
  16. }
  17. EnableErrorHandling();
  18. ReactDOM.render(<App />, document.getElementById("output"));