diff --git a/.babelrc b/.babelrc index 444ffade..996d3b65 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,4 @@ { - "presets": [ "react", "es2015" ] + "presets": [ "react", "es2015" ], + "plugins": [ "transform-class-properties" ] } diff --git a/package.json b/package.json index c0225eaf..66dcd7d3 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "babel-core": "^6.24.1", "babel-jest": "^19.0.0", "babel-loader": "^7.0.0", + "babel-plugin-transform-class-properties": "^6.24.1", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "babelify": "^7.3.0", @@ -92,7 +93,6 @@ }, "dependencies": { "classnames": "^2.2.5", - "create-react-class": "^15.5.2", "react-easy-swipe": "^0.0.10", "prop-types": "^15.5.8" } diff --git a/tasks/browserify.js b/tasks/browserify.js index 493fc608..9f722cb3 100644 --- a/tasks/browserify.js +++ b/tasks/browserify.js @@ -25,7 +25,7 @@ module.exports = function (options) { // using dev components entries: [configs.paths.source + '/main.js'], // using npm components - transform: [["babelify", {presets: ["es2015", "react"]}]], + transform: ["babelify"], debug: isDevelopment, fullPaths: isDevelopment, extension: ['js']