perf(charts): import chart components from @gpustack/core-ui/charts
Switch all echarts-based chart imports to the dedicated core-ui charts entry so echarts stays out of the synchronous entry bundle and loads only on chart routes. Requires @gpustack/core-ui with the ./charts export.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { GaugeChart, TemplateCard } from '@gpustack/core-ui';
|
||||
import { TemplateCard } from '@gpustack/core-ui';
|
||||
import { GaugeChart } from '@gpustack/core-ui/charts';
|
||||
import { useSearchParams } from '@umijs/max';
|
||||
import { Col, Row } from 'antd';
|
||||
import _ from 'lodash';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LineChart } from '@gpustack/core-ui';
|
||||
import { LineChart } from '@gpustack/core-ui/charts';
|
||||
import { useIntl } from '@umijs/max';
|
||||
import dayjs from 'dayjs';
|
||||
import _ from 'lodash';
|
||||
|
||||
Reference in New Issue
Block a user