Skip to content

Commit

Permalink
feat: bring lazy import back (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored and zhaoyongjie committed Nov 26, 2021
1 parent be7623e commit 68ebb11
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
import { ChartPlugin } from '@superset-ui/chart';
import createMetadata from './createMetadata';
import transformProps from './transformProps';
import Chart from './BoxPlot';

export default class BoxPlotChartPlugin extends ChartPlugin {
constructor() {
super({
Chart,
loadChart: () => import('./BoxPlot'),
metadata: createMetadata(),
transformProps,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
import { ChartPlugin } from '@superset-ui/chart';
import createMetadata from '../createMetadata';
import transformProps from './transformProps';
import Chart from '../BoxPlot';

export default class BoxPlotChartPlugin extends ChartPlugin {
constructor() {
super({
Chart,
loadChart: () => import('../BoxPlot'),
metadata: createMetadata(true),
transformProps,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import transformProps from './transformProps';
import createMetadata from './createMetadata';
import buildQuery from './buildQuery';
import ChartFormData from './ChartFormData';
import Chart from './Line';

export default class LineChartPlugin extends ChartPlugin<ChartFormData> {
constructor() {
super({
buildQuery,
Chart,
loadChart: () => import('./Line'),
metadata: createMetadata(),
transformProps,
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { ChartPlugin } from '@superset-ui/chart';
import transformProps from './transformProps';
import createMetadata from '../createMetadata';
import Chart from '../Line';

export default class LineChartPlugin extends ChartPlugin {
constructor() {
super({
Chart,
loadChart: () => import('../Line'),
metadata: createMetadata(true),
transformProps,
});
Expand Down

0 comments on commit 68ebb11

Please sign in to comment.