Skip to content

Commit

Permalink
Merge pull request #2321 from avindra/fix/cleanup
Browse files Browse the repository at this point in the history
Remove core-js
  • Loading branch information
xile611 authored Nov 16, 2020
2 parents d08e0cf + cc582bb commit d91879f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"jsnext:main": "es6/index",
"types": "types/index.d.ts",
"sideEffects": [
"./*/index.js",
"./*/polyfill.js"
"./*/index.js"
],
"files": [
"*.md",
Expand Down Expand Up @@ -58,7 +57,6 @@
},
"dependencies": {
"classnames": "^2.2.5",
"core-js": "^3.4.2",
"d3-interpolate": "^1.3.0",
"d3-scale": "^3.1.0",
"d3-shape": "^1.3.5",
Expand All @@ -79,7 +77,6 @@
"@babel/plugin-proposal-function-bind": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.6.3",
"@babel/preset-react": "^7.6.3",
"@babel/preset-typescript": "^7.6.0",
Expand Down
2 changes: 1 addition & 1 deletion src/chart/generateCategoricalChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ const generateCategoricalChart = ({
const { xAxisMap, yAxisMap, offset } = this.state;
const { width, height } = this.props;
const xAxis = getAnyElementOfObject(xAxisMap);
const yAxisWithFiniteDomain = _.find(yAxisMap, axis => _.every(axis.domain, Number.isFinite));
const yAxisWithFiniteDomain = _.find(yAxisMap, axis => _.every(axis.domain, isFinite));
const yAxis = yAxisWithFiniteDomain || getAnyElementOfObject(yAxisMap);
const props = element.props || {};

Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './polyfill';

export { default as Surface } from './container/Surface';
export { default as Layer } from './container/Layer';

Expand Down
16 changes: 0 additions & 16 deletions src/polyfill.ts

This file was deleted.

0 comments on commit d91879f

Please sign in to comment.