Skip to content

Commit

Permalink
fix(config): remove unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed Feb 3, 2020
1 parent ebd9380 commit 7aa3928
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/config/config-set.ts
Expand Up @@ -348,24 +348,6 @@ export class ConfigSet {
}
}

// private static loadConfig(base: BabelConfig): BabelConfig {
// // loadPartialConfig is from babel 7+, and OptionManager is backward compatible but deprecated 6 API
// const { OptionManager, loadPartialConfig, version } = importer.babelCore(ImportReasons.BabelJest)
// // cwd is only supported from babel >= 7
// if (version && semver.satisfies(version, '>=6 <7')) {
// delete base.cwd
// }
// // call babel to load options
// if (typeof loadPartialConfig === 'function') {
// const partialConfig = loadPartialConfig(base)
// if (partialConfig) {
// return partialConfig.options as BabelConfig
// }
// }
//
// return new OptionManager().init(base) as BabelConfig
// }

@Memoize()
get babel(): BabelConfig | undefined {
const {
Expand Down

0 comments on commit 7aa3928

Please sign in to comment.