Skip to content

Commit

Permalink
reduce initial bundle size for console and index management (elastic#…
Browse files Browse the repository at this point in the history
…206887)

## Summary

This moves the scss content from an initial bundle load to an async
bundle load for the dev console and index management.

For testing - make sure the mapping editor and the dev console render
correctly. It will be abundantly clear if they don't.
  • Loading branch information
mattkime authored Jan 17, 2025
1 parent 9bc2438 commit 739e8cc
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import '../index.scss';
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { HttpSetup, NotificationsSetup, DocLinksStart } from '@kbn/core/public';
Expand Down
1 change: 0 additions & 1 deletion src/platform/plugins/shared/console/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import './index.scss';
import { PluginInitializerContext } from '@kbn/core/public';

import { ConsoleUIPlugin } from './plugin';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* 2.0.
*/

import '../index.scss';
import { i18n } from '@kbn/i18n';
import SemVer from 'semver/classes/semver';
import { CoreSetup, CoreStart, ScopedHistory } from '@kbn/core/public';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* 2.0.
*/

import './index.scss';
import { PluginInitializerContext } from '@kbn/core/public';
import { IndexMgmtUIPlugin } from './plugin';

Expand Down

0 comments on commit 739e8cc

Please sign in to comment.