From 596c42d7cde87fb02fda48417d6f244bec7d4406 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Wed, 18 Nov 2015 20:15:26 +0100 Subject: [PATCH] Remove babel-plugin-react-display-name. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It should be unnecessary because it’s a dependency of both babel-core (for Babel 5) and babel-preset-react (for Babel 6). Fix #18. --- package.json | 1 - src/make-webpack-config.js | 3 --- 2 files changed, 4 deletions(-) diff --git a/package.json b/package.json index 9d95cc2d4..8e7507460 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "dependencies": { "babel-core": "5.8.30", "babel-loader": "5.3.2", - "babel-plugin-react-display-name": "2.0.0", "babel-plugin-react-transform": "1.1.1", "chalk": "1.1.1", "codemirror": "5.8.0", diff --git a/src/make-webpack-config.js b/src/make-webpack-config.js index 3f6d1f74c..ac5596337 100644 --- a/src/make-webpack-config.js +++ b/src/make-webpack-config.js @@ -18,10 +18,8 @@ module.exports = function(env) { } var reactTransformPath = path.join(__dirname, '../../babel-plugin-react-transform'); // npm 3 - var reactDisplayNamePath = path.join(__dirname, '../../babel-plugin-react-display-name'); // npm 3 if (!fs.existsSync(reactTransformPath)) { reactTransformPath = path.resolve(__dirname, '../node_modules/babel-plugin-react-transform'); // npm 2 or react-styleguidist develop - reactDisplayNamePath = path.resolve(__dirname, '../node_modules/babel-plugin-react-display-name'); // npm 2 or react-styleguidist develop } var includes = [ @@ -154,7 +152,6 @@ module.exports = function(env) { query: { stage: 0, plugins: [ - reactDisplayNamePath, reactTransformPath ], extra: {