Skip to content

Commit

Permalink
fix(scripts): add missing properties to default babel preset options
Browse files Browse the repository at this point in the history
This makes sure the return has a consistent object structure.
  • Loading branch information
swashata committed Apr 28, 2019
1 parent 0e10b08 commit 68544b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/scripts/src/config/babelConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export function getDefaultBabelPresetOptions(
): PresetOptions {
const defaultBabelOptions: PresetOptions = {
hasReact,
presetEnv: {},
presetReact: {},
};

// Push targets to babel-preset-env if this is dev
Expand Down

0 comments on commit 68544b3

Please sign in to comment.