Skip to content

Commit

Permalink
Fix for #183 - issue with removing a preset from users babelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
witnessmenow committed May 10, 2016
1 parent 45b41bf commit 3fd60c4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
22 changes: 11 additions & 11 deletions dist/manager.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/manager.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion dist/server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ var logger = console;

function removeReactHmre(presets) {
var index = presets.indexOf('react-hmre');
presets.splice(index, 1);
if (index > -1) {
presets.splice(index, 1);
}
}

// Tries to load a .babelrc and returns the parsed object if successful
Expand Down
4 changes: 3 additions & 1 deletion src/server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const logger = console;

function removeReactHmre(presets) {
const index = presets.indexOf('react-hmre');
presets.splice(index, 1);
if (index > -1) {
presets.splice(index, 1);
}
}

// Tries to load a .babelrc and returns the parsed object if successful
Expand Down

0 comments on commit 3fd60c4

Please sign in to comment.