From 68544b3cf84ecf96179d808909dd2f7f4c724100 Mon Sep 17 00:00:00 2001 From: Swashata Ghosh Date: Sun, 28 Apr 2019 17:39:29 +0530 Subject: [PATCH] fix(scripts): add missing properties to default babel preset options This makes sure the return has a consistent object structure. --- packages/scripts/src/config/babelConfig.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/scripts/src/config/babelConfig.ts b/packages/scripts/src/config/babelConfig.ts index c5148116f..8a76e7317 100644 --- a/packages/scripts/src/config/babelConfig.ts +++ b/packages/scripts/src/config/babelConfig.ts @@ -16,6 +16,8 @@ export function getDefaultBabelPresetOptions( ): PresetOptions { const defaultBabelOptions: PresetOptions = { hasReact, + presetEnv: {}, + presetReact: {}, }; // Push targets to babel-preset-env if this is dev