diff --git a/.babelrc b/.babelrc index ceb1190..ad84fe1 100755 --- a/.babelrc +++ b/.babelrc @@ -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": { diff --git a/package-lock.json b/package-lock.json index 8558f8d..752c455 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1871,6 +1871,15 @@ } } }, + "babel-plugin-transform-object-assign": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-object-assign/-/babel-plugin-transform-object-assign-6.22.0.tgz", + "integrity": "sha1-+Z0vZvGgsNSY40bFNZaEdAyqILo=", + "dev": true, + "requires": { + "babel-runtime": "6.23.0" + } + }, "babel-plugin-transform-object-rest-spread": { "version": "6.23.0", "resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.23.0.tgz", @@ -1930,15 +1939,6 @@ "regenerator-transform": "0.10.1" } }, - "babel-plugin-transform-runtime": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz", - "integrity": "sha1-iEkNRGUC6puOfvsP4J7E2ZR5se4=", - "dev": true, - "requires": { - "babel-runtime": "6.23.0" - } - }, "babel-plugin-transform-strict-mode": { "version": "6.24.1", "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", diff --git a/package.json b/package.json index cb7c43f..b6cce70 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.js b/src/index.js index f6a2a98..a6c9462 100644 --- a/src/index.js +++ b/src/index.js @@ -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) {