Skip to content

Commit

Permalink
fix build refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Dec 5, 2017
1 parent 052a3d5 commit a54b55b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 13 deletions.
19 changes: 17 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,27 @@
"production": {
"plugins": [
"array-includes",
"transform-flow-strip-types"
"transform-flow-strip-types",
"transform-object-assign"
]
},
"commonjs": {
"presets": [
[
"env", {
"useBuiltIns": true,
"targets": {
"browsers": ["last 2 versions", "safari >= 7"]
}
}
],
"react",
"stage-1"
],
"plugins": [
["transform-es2015-modules-commonjs", { "loose": true }]
"array-includes",
"transform-flow-strip-types",
"transform-object-assign"
]
},
"test": {
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"babel-plugin-array-includes": "^2.0.3",
"babel-plugin-istanbul": "^4.1.5",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
Expand Down
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import Payment from 'payment';
import './styles.scss';

class ReactCreditCards extends React.Component {
constructor(props) {
Expand Down

0 comments on commit a54b55b

Please sign in to comment.