Skip to content

Commit a54b55b

Browse files
committed
fix build refactor
1 parent 052a3d5 commit a54b55b

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

.babelrc

+17-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,27 @@
1616
"production": {
1717
"plugins": [
1818
"array-includes",
19-
"transform-flow-strip-types"
19+
"transform-flow-strip-types",
20+
"transform-object-assign"
2021
]
2122
},
2223
"commonjs": {
24+
"presets": [
25+
[
26+
"env", {
27+
"useBuiltIns": true,
28+
"targets": {
29+
"browsers": ["last 2 versions", "safari >= 7"]
30+
}
31+
}
32+
],
33+
"react",
34+
"stage-1"
35+
],
2336
"plugins": [
24-
["transform-es2015-modules-commonjs", { "loose": true }]
37+
"array-includes",
38+
"transform-flow-strip-types",
39+
"transform-object-assign"
2540
]
2641
},
2742
"test": {

package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"babel-plugin-array-includes": "^2.0.3",
5252
"babel-plugin-istanbul": "^4.1.5",
5353
"babel-plugin-transform-flow-strip-types": "^6.22.0",
54-
"babel-plugin-transform-runtime": "^6.23.0",
54+
"babel-plugin-transform-object-assign": "^6.22.0",
5555
"babel-preset-env": "^1.6.1",
5656
"babel-preset-react": "^6.24.1",
5757
"babel-preset-stage-1": "^6.24.1",

src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import Payment from 'payment';
4-
import './styles.scss';
54

65
class ReactCreditCards extends React.Component {
76
constructor(props) {

0 commit comments

Comments
 (0)