Skip to content

Commit

Permalink
deps: upgrade recharts and use es6 import
Browse files Browse the repository at this point in the history
  • Loading branch information
sjbarag committed Sep 20, 2023
1 parent a606a13 commit 239711d
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 33 deletions.
2 changes: 1 addition & 1 deletion packages/ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lodash": "^4.17.21",
"react-lines-ellipsis": "^0.15.0",
"react-popper": "^2.2.5",
"recharts": "^2.1.12"
"recharts": "^2.8.0"
},
"devDependencies": {
"@babel/cli": "7.21.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-components/src/Charts/barChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Legend,
ResponsiveContainer,
Cell,
} from "recharts";
} from "recharts/es6";
import { Margin } from "recharts/types/util/types";

import { ColorCoreNeutral0 } from "@cockroachlabs/design-tokens";
Expand Down
3 changes: 3 additions & 0 deletions packages/ui-components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"target": "es6",
"skipLibCheck": true,
"sourceMap": false,
"paths": {
"recharts/es6": ["./node_modules/recharts"],
}
},
"exclude": [
"node_modules",
Expand Down
125 changes: 94 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 239711d

Please sign in to comment.