commonInitialization.tsx 515 B

1234567891011121314
  1. import {NODE_ENV, UI_DEV_ENABLE_PROFILING} from 'sentry/constants';
  2. import ConfigStore from 'sentry/stores/configStore';
  3. import type {Config} from 'sentry/types';
  4. export function commonInitialization(config: Config) {
  5. if (NODE_ENV === 'development') {
  6. import(/* webpackMode: "eager" */ 'sentry/utils/silence-react-unsafe-warnings');
  7. if (UI_DEV_ENABLE_PROFILING) {
  8. config.sentryConfig.profilesSampleRate = 1.0; // Enable profiling on dev for now.
  9. }
  10. }
  11. ConfigStore.loadInitialData(config);
  12. }