Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessidhia authored Jan 28, 2019
1 parent ebe8237 commit 3c2b1cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/config-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ export class ConfigSet {
// call babel to load options
let config: BabelConfig
if (typeof loadPartialConfig === 'function') {
config = loadPartialConfig(base).options as BabelConfig
const partialConfig = loadPartialConfig(base)
config = partialConfig && partialConfig.options as BabelConfig
} else {
config = new OptionManager().init(base) as BabelConfig
}
Expand Down

0 comments on commit 3c2b1cf

Please sign in to comment.