Skip to content

Commit

Permalink
reduce uptime plugin initial bundle size (#65257) (#65679)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov authored May 7, 2020
1 parent 20be558 commit 63fb7f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/plugins/uptime/public/apps/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
import { UMFrontendLibs } from '../lib/lib';
import { PLUGIN } from '../../common/constants';
import { FeatureCatalogueCategory } from '../../../../../src/plugins/home/public';
import { getKibanaFrameworkAdapter } from '../lib/adapters/framework/new_platform_adapter';
import { HomePublicPluginSetup } from '../../../../../src/plugins/home/public';
import { EmbeddableStart } from '../../../../../src/plugins/embeddable/public';
import { TriggersAndActionsUIPublicPluginSetup } from '../../../triggers_actions_ui/public';
Expand Down Expand Up @@ -61,6 +60,10 @@ export class UptimePlugin implements Plugin<void, void, ClientPluginsSetup, Clie
category: DEFAULT_APP_CATEGORIES.observability,
async mount(params: AppMountParameters) {
const [coreStart, corePlugins] = await core.getStartServices();
const { getKibanaFrameworkAdapter } = await import(
'../lib/adapters/framework/new_platform_adapter'
);

const { element } = params;
const libs: UMFrontendLibs = {
framework: getKibanaFrameworkAdapter(coreStart, plugins, corePlugins),
Expand Down

0 comments on commit 63fb7f9

Please sign in to comment.