Skip to content

Commit

Permalink
Merge pull request #500 from runspired/master
Browse files Browse the repository at this point in the history
fix: filter undefined options
  • Loading branch information
ef4 committed Sep 26, 2023
2 parents 73e421f + 0a8022b commit 9d0a082
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 9d0a082

Please sign in to comment.