From 0a8022bcf8b9e438ab5a875cee4cbc63c6e03e37 Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Sat, 26 Aug 2023 17:36:56 -0700 Subject: [PATCH] fix: filter undefined options --- index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.js b/index.js index 9460485d..9bbac981 100644 --- a/index.js +++ b/index.js @@ -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'];