Skip to content

Commit

Permalink
fix: filter undefined options
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Aug 27, 2023
1 parent 73e421f commit 0a8022b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,14 @@ module.exports = {
},
};

// Remove any undefined options so that they don't override the default
// Or error when broccoli-babel-transpiler checks serializability
Object.keys(options.babel).forEach(key => {
if (options.babel[key] === undefined) {
delete options.babel[key];
}
});

let output;

const customAddonConfig = config['ember-cli-babel'];
Expand Down

0 comments on commit 0a8022b

Please sign in to comment.