Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.

Commit 7917984

Browse files
authored
Removed babel-polyfill and substituted with narrower imports (#211)
1 parent 3c428a7 commit 7917984

File tree

8 files changed

+3
-7
lines changed

8 files changed

+3
-7
lines changed

example/src/App.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import RadarChartBasic from './radar/RadarChartBasic'
4343
import TreeChartBasic from './tree/TreeChartBasic'
4444

4545
import Home from './Home'
46-
import 'babel-polyfill'
4746

4847
const styles = StyleSheet.create({
4948
container: {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
}
3838
],
3939
"dependencies": {
40-
"babel-polyfill": "^6.23.0",
4140
"lodash": "^4.12.0",
4241
"paths-js": "^0.4.5",
4342
"react-native-svg": "~5.5.1"

src/Bar.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import _ from 'lodash'
2424
import Axis from './Axis'
2525
import GridAxis from './GridAxis'
2626
const Bar = require('paths-js/bar')
27-
import 'babel-polyfill'
2827

2928
export default class BarChart extends Component {
3029

src/Pie.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {Text as ReactText} from 'react-native'
1818
import Svg,{ G, Path, Text, Circle} from 'react-native-svg'
1919
import { Colors, Options, cyclic, identity, fontAdapt } from './util'
2020
import _ from 'lodash'
21-
import 'babel-polyfill'
2221
const Pie = require('paths-js/pie')
2322

2423
export default class PieChart extends Component {

src/Radar.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {Text as ReactText} from 'react-native'
2121
import Svg,{ G, Path, Line, Text} from 'react-native-svg'
2222
import { Options, identity, styleSvg, fontAdapt } from './util'
2323
const Radar = require('paths-js/radar')
24-
import 'babel-polyfill'
2524

2625
function accessKeys(keys) {
2726
let a = {}

src/Scatterplot.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { Options, styleSvg } from './util'
2323
import Axis from './Axis'
2424
import GridAxis from './GridAxis'
2525
import _ from 'lodash'
26-
import 'babel-polyfill'
2726

2827
const Stock = require('paths-js/stock')
2928

src/Tree.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import Svg,{ Circle, G, Path, Text } from 'react-native-svg'
2222
import { Options, styleSvg, fontAdapt } from './util'
2323
import _ from 'lodash'
2424
const Tree = require('paths-js/tree')
25-
import 'babel-polyfill'
2625

2726
function children(x) {
2827
if(x.collapsed) {

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import SmoothLine from './SmoothLine'
2424
import StockLine from './StockLine'
2525
import Scatterplot from './Scatterplot.js'
2626

27+
import 'core-js/es6/symbol'
28+
import 'core-js/fn/symbol/iterator'
29+
2730
export {
2831
Pie,
2932
Tree,

0 commit comments

Comments
 (0)