Skip to content

Commit

Permalink
🐛 Move the styling one level deeper to avoid loading gaps
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Oct 13, 2021
1 parent 3659936 commit 6ee8270
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { getInterval } from './lib/get_interval';
import { AUTO_INTERVAL } from '../../../common/constants';
import { TIME_RANGE_DATA_MODES, PANEL_TYPES } from '../../../common/enums';
import type { IndexPattern } from '../../../../../data/common';
import '../index.scss';

interface TimeseriesVisualizationProps {
className?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ export const getTimeseriesVisRenderer: (deps: {
name: 'timeseries_vis',
reuseDomNode: true,
render: async (domNode, config, handlers) => {
// Build optimization. Move app styles from main bundle
// @ts-expect-error TS error, cannot find type declaration for scss
await import('./application/index.scss');

handlers.onDestroy(() => {
unmountComponentAtNode(domNode);
});
Expand Down

0 comments on commit 6ee8270

Please sign in to comment.