refactor: use _ for lodash

This commit is contained in:
Clark Du 2018-03-23 12:59:14 +08:00 committed by Pooya Parsa
parent 67d4d5378b
commit d9984f5fd3

View File

@ -1,7 +1,7 @@
import fs from 'fs' import fs from 'fs'
import path from 'path' import path from 'path'
import ـ from 'lodash' import _ from 'lodash'
import createResolver from 'postcss-import-resolver' import createResolver from 'postcss-import-resolver'
import { isPureObject } from '../../../common/utils' import { isPureObject } from '../../../common/utils'
@ -105,11 +105,11 @@ export default class PostcssConfig {
return config return config
} }
config = this.normalize(ـ.cloneDeep(this.postcss)) config = this.normalize(_.cloneDeep(this.postcss))
// Apply default plugins // Apply default plugins
if (isPureObject(config)) { if (isPureObject(config)) {
config = ـ.defaults(config, this.defaultConfig) _.defaults(config, this.defaultConfig)
this.loadPlugins(config) this.loadPlugins(config)
} }