1234567891011121314151617 |
- import 'focus-visible';
- import {NODE_ENV} from 'sentry/constants';
- import ConfigStore from 'sentry/stores/configStore';
- import {Config} from 'sentry/types';
- import {setupColorScheme} from 'sentry/utils/matchMedia';
- export function commonInitialization(config: Config) {
- if (NODE_ENV === 'development') {
- import(/* webpackMode: "eager" */ 'sentry/utils/silence-react-unsafe-warnings');
- }
- ConfigStore.loadInitialData(config);
- // setup darkmode + favicon
- setupColorScheme();
- }
|