Skip to content

Commit

Permalink
Remove babel-plugin-react-display-name.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sapegin committed Nov 18, 2015
1 parent 33a03af commit 596c42d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 0 additions & 3 deletions src/make-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -154,7 +152,6 @@ module.exports = function(env) {
query: {
stage: 0,
plugins: [
reactDisplayNamePath,
reactTransformPath
],
extra: {
Expand Down

0 comments on commit 596c42d

Please sign in to comment.