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

Commit

Permalink
Removed babel-polyfill and substituted with narrower imports (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
marzolfb authored Nov 27, 2017
1 parent 3c428a7 commit 7917984
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion example/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import RadarChartBasic from './radar/RadarChartBasic'
import TreeChartBasic from './tree/TreeChartBasic'

import Home from './Home'
import 'babel-polyfill'

const styles = StyleSheet.create({
container: {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
}
],
"dependencies": {
"babel-polyfill": "^6.23.0",
"lodash": "^4.12.0",
"paths-js": "^0.4.5",
"react-native-svg": "~5.5.1"
Expand Down
1 change: 0 additions & 1 deletion src/Bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import _ from 'lodash'
import Axis from './Axis'
import GridAxis from './GridAxis'
const Bar = require('paths-js/bar')
import 'babel-polyfill'

export default class BarChart extends Component {

Expand Down
1 change: 0 additions & 1 deletion src/Pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {Text as ReactText} from 'react-native'
import Svg,{ G, Path, Text, Circle} from 'react-native-svg'
import { Colors, Options, cyclic, identity, fontAdapt } from './util'
import _ from 'lodash'
import 'babel-polyfill'
const Pie = require('paths-js/pie')

export default class PieChart extends Component {
Expand Down
1 change: 0 additions & 1 deletion src/Radar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {Text as ReactText} from 'react-native'
import Svg,{ G, Path, Line, Text} from 'react-native-svg'
import { Options, identity, styleSvg, fontAdapt } from './util'
const Radar = require('paths-js/radar')
import 'babel-polyfill'

function accessKeys(keys) {
let a = {}
Expand Down
1 change: 0 additions & 1 deletion src/Scatterplot.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { Options, styleSvg } from './util'
import Axis from './Axis'
import GridAxis from './GridAxis'
import _ from 'lodash'
import 'babel-polyfill'

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

Expand Down
1 change: 0 additions & 1 deletion src/Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import Svg,{ Circle, G, Path, Text } from 'react-native-svg'
import { Options, styleSvg, fontAdapt } from './util'
import _ from 'lodash'
const Tree = require('paths-js/tree')
import 'babel-polyfill'

function children(x) {
if(x.collapsed) {
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ import SmoothLine from './SmoothLine'
import StockLine from './StockLine'
import Scatterplot from './Scatterplot.js'

import 'core-js/es6/symbol'
import 'core-js/fn/symbol/iterator'

export {
Pie,
Tree,
Expand Down

0 comments on commit 7917984

Please sign in to comment.