Skip to content

Commit

Permalink
reduce kibana utils bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Oct 14, 2021
1 parent f598cf1 commit c778d78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/kbn-optimizer/limits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pageLoadAssetSize:
console: 46091
core: 435325
crossClusterReplication: 65408
dashboard: 374194
dashboard: 186763
dashboardEnhanced: 65646
devTools: 38637
discover: 99999
Expand Down Expand Up @@ -99,7 +99,7 @@ pageLoadAssetSize:
expressionMetricVis: 23121
visTypeMetric: 23332
bfetch: 22837
kibanaUtils: 97808
kibanaUtils: 79713
data: 491273
dataViews: 41532
expressions: 140958
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/dashboard/common/saved_dashboard_references.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import Semver from 'semver';
import semverGt from 'semver/functions/gt';
import { SavedObjectAttributes, SavedObjectReference } from '../../../core/types';
import { DashboardContainerStateWithType, DashboardPanelState } from './types';
import { EmbeddablePersistableStateService } from '../../embeddable/common/types';
Expand All @@ -23,7 +23,7 @@ export interface SavedObjectAttributesAndReferences {
}

const isPre730Panel = (panel: Record<string, string>): boolean => {
return 'version' in panel ? Semver.gt('7.3.0', panel.version) : true;
return 'version' in panel ? semverGt('7.3.0', panel.version) : true;
};

function dashboardAttributesToState(attributes: SavedObjectAttributes): {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Side Public License, v 1.
*/

import { compare } from 'semver';
import compare from 'semver/functions/compare';
import { SerializableRecord } from '@kbn/utility-types';
import { VersionedState, MigrateFunctionsObject } from './types';

Expand Down

0 comments on commit c778d78

Please sign in to comment.