Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
feat: bring lazy import back (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored May 8, 2019
1 parent cceb155 commit 72c0203
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions packages/superset-ui-preset-chart-xy/src/BoxPlot/index.ts
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
3 changes: 1 addition & 2 deletions packages/superset-ui-preset-chart-xy/src/Line/index.ts
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 72c0203

Please sign in to comment.