Skip to content

Commit 8138568

Browse files
stonebkevocateur
authored andcommitted
fix(babel-preset-zillow): Preserve buildTargets when no options are passed (airbnb#1)
1 parent efe40cc commit 8138568

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/babel-preset-zillow/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const defaultTargets = {
1414
};
1515

1616
function buildTargets(options) {
17-
return Object.assign({}, defaultTargets, options.additionalTargets);
17+
return Object.assign({}, defaultTargets, options && options.additionalTargets);
1818
}
1919

2020
module.exports = function babelPresetZillow(context, options) {

0 commit comments

Comments
 (0)