Skip to content

Commit

Permalink
reduce bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
semd committed May 21, 2023
1 parent 429074d commit f93a617
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import type { MappingRuntimeFields } from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import { BrowserFields } from '@kbn/timelines-plugin/common';

export const DEFAULT_INDEX_PATTERN = [
const DEFAULT_INDEX_PATTERN = [
'apm-*-transaction*',
'auditbeat-*',
'endgame-*',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { render } from '@testing-library/react';
import React from 'react';
import { SecurityPageName } from '../../../app/types';
import type { NavigationLink } from '../../links';
import type { NavigationLink } from '../../links/types';
import { TestProviders } from '../../mock';
import { LandingLinksIcons } from './landing_links_icons';
import * as telemetry from '../../lib/telemetry';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import styled from 'styled-components';

import { NavItemBetaBadge } from '../navigation/nav_item_beta_badge';
import { SecuritySolutionLinkAnchor, withSecuritySolutionLink } from '../links';
import type { NavigationLink } from '../../links';
import type { NavigationLink } from '../../links/types';
import { METRIC_TYPE, TELEMETRY_EVENT, track } from '../../lib/telemetry';

interface LandingLinksImagesProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { render } from '@testing-library/react';
import React from 'react';
import { BETA } from '@kbn/kubernetes-security-plugin/common/translations';
import { SecurityPageName } from '../../../app/types';
import type { NavigationLink } from '../../links';
import type { NavigationLink } from '../../links/types';
import { TestProviders } from '../../mock';
import { LandingLinksImages, LandingImageCards } from './landing_links_images';
import * as telemetry from '../../lib/telemetry';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import React from 'react';
import styled from 'styled-components';
import { withSecuritySolutionLink } from '../links';
import { NavItemBetaBadge } from '../navigation/nav_item_beta_badge';
import type { NavigationLink } from '../../links';
import type { NavigationLink } from '../../links/types';
import { TELEMETRY_EVENT, track } from '../../lib/telemetry';

interface LandingImagesProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SecurityPageName } from '../../../../app/types';
import { TestProviders } from '../../../mock';
import { BOTTOM_BAR_HEIGHT, EUI_HEADER_HEIGHT, SecuritySideNav } from './security_side_nav';
import type { SolutionSideNavProps } from '@kbn/security-solution-side-nav';
import type { NavigationLink } from '../../../links';
import type { NavigationLink } from '../../../links/types';
import { track } from '../../../lib/telemetry';
import { useKibana } from '../../../lib/kibana';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import React from 'react';
import { EuiLoadingSpinner } from '@elastic/eui';
import type { TabNavigationProps } from './types';

// export { TabNavigation } from './tab_navigation';
const TabNavigationLazy = React.lazy(() => import('./tab_navigation'));

export const TabNavigation = (props: TabNavigationProps) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
*/

export * from './links';
export * from './deep_links';
export * from './types';
3 changes: 2 additions & 1 deletion x-pack/plugins/security_solution/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ import { SOLUTION_NAME } from './common/translations';

import { APP_ID, APP_UI_ID, APP_PATH, APP_ICON_SOLUTION } from '../common/constants';

import { updateAppLinks, registerDeepLinksUpdater, type LinksPermissions } from './common/links';
import { updateAppLinks, type LinksPermissions } from './common/links';
import { registerDeepLinksUpdater } from './common/links/deep_links';
import { navLinks$ } from './common/links/nav_links';
import { licenseService } from './common/hooks/use_license';
import type { SecuritySolutionUiConfigType } from './common/types';
Expand Down

0 comments on commit f93a617

Please sign in to comment.