reduce uptime plugin initial bundle size (#65257)
This commit is contained in:
parent
55e4c7f9a7
commit
8373247da0
|
@ -12,7 +12,6 @@ import {
|
||||||
import { UMFrontendLibs } from '../lib/lib';
|
import { UMFrontendLibs } from '../lib/lib';
|
||||||
import { PLUGIN } from '../../common/constants';
|
import { PLUGIN } from '../../common/constants';
|
||||||
import { FeatureCatalogueCategory } from '../../../../../src/plugins/home/public';
|
import { FeatureCatalogueCategory } from '../../../../../src/plugins/home/public';
|
||||||
import { getKibanaFrameworkAdapter } from '../lib/adapters/framework/new_platform_adapter';
|
|
||||||
import { HomePublicPluginSetup } from '../../../../../src/plugins/home/public';
|
import { HomePublicPluginSetup } from '../../../../../src/plugins/home/public';
|
||||||
import { EmbeddableStart } from '../../../../../src/plugins/embeddable/public';
|
import { EmbeddableStart } from '../../../../../src/plugins/embeddable/public';
|
||||||
import { TriggersAndActionsUIPublicPluginSetup } from '../../../triggers_actions_ui/public';
|
import { TriggersAndActionsUIPublicPluginSetup } from '../../../triggers_actions_ui/public';
|
||||||
|
@ -61,6 +60,10 @@ export class UptimePlugin implements Plugin<void, void, ClientPluginsSetup, Clie
|
||||||
category: DEFAULT_APP_CATEGORIES.observability,
|
category: DEFAULT_APP_CATEGORIES.observability,
|
||||||
async mount(params: AppMountParameters) {
|
async mount(params: AppMountParameters) {
|
||||||
const [coreStart, corePlugins] = await core.getStartServices();
|
const [coreStart, corePlugins] = await core.getStartServices();
|
||||||
|
const { getKibanaFrameworkAdapter } = await import(
|
||||||
|
'../lib/adapters/framework/new_platform_adapter'
|
||||||
|
);
|
||||||
|
|
||||||
const { element } = params;
|
const { element } = params;
|
||||||
const libs: UMFrontendLibs = {
|
const libs: UMFrontendLibs = {
|
||||||
framework: getKibanaFrameworkAdapter(coreStart, plugins, corePlugins),
|
framework: getKibanaFrameworkAdapter(coreStart, plugins, corePlugins),
|
||||||
|
|
Loading…
Reference in a new issue