Skip to content

Commit

Permalink
Fixes undefined options
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed Jun 20, 2017
1 parent 9410812 commit 146be3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function buildTargets(options) {
}

module.exports = function buildAirbnbPreset(context, options) {
const targets = (options && options.targets) || buildTargets(options);
const targets = (options && options.targets) || buildTargets(options || {});

return {
presets: [
Expand Down

0 comments on commit 146be3b

Please sign in to comment.