commonInitialization.tsx 492 B

1234567891011121314151617
  1. import 'focus-visible';
  2. import {NODE_ENV} from 'sentry/constants';
  3. import ConfigStore from 'sentry/stores/configStore';
  4. import {Config} from 'sentry/types';
  5. import {setupColorScheme} from 'sentry/utils/matchMedia';
  6. export function commonInitialization(config: Config) {
  7. if (NODE_ENV === 'development') {
  8. import(/* webpackMode: "eager" */ 'sentry/utils/silence-react-unsafe-warnings');
  9. }
  10. ConfigStore.loadInitialData(config);
  11. // setup darkmode + favicon
  12. setupColorScheme();
  13. }