mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-22 12:27:13 +08:00
* Code splitting and lazy loading for admin page components * Code splitting and lazy loading for mixpanel library * Set names for each chunk * Code splitting and lazy loading for modal components * Code splitting and lazy loading for charts * Consistent naming convention for webpack chunks
16 lines
507 B
JavaScript
16 lines
507 B
JavaScript
import { lazy } from '@wordpress/element';
|
|
|
|
// Lazy-load chart components to split @mui/x-charts into separate webpack chunks
|
|
export const LineChart = lazy(() =>
|
|
import(/* webpackChunkName: "chunk-charts-analytics" */ './line-chart').then(
|
|
(module) => ({ default: module.LineChart }),
|
|
),
|
|
);
|
|
|
|
export const PieChart = lazy(() =>
|
|
import(/* webpackChunkName: "chunk-charts-analytics" */ './pie-chart').then(
|
|
(module) => ({ default: module.PieChart }),
|
|
),
|
|
);
|
|
|
|
export { UsageTable } from './usage-table';
|