Skip to content

Commit

Permalink
Fix error when providing babel/preset-env without options (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
n3tr authored and jaredpalmer committed Dec 3, 2019
1 parent 6252b70 commit a1a0dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/babelPluginTsdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const babelPluginTsdx = babelPlugin.custom((babelCore: any) => ({
modules: false,
exclude: merge(
['transform-async-to-generator', 'transform-regenerator'],
preset.options.exclude || []
(preset.options && preset.options.exclude) || []
),
}
),
Expand Down

0 comments on commit a1a0dcb

Please sign in to comment.