Skip to content

Commit

Permalink
Object.assign allows only for shallow merges - replaced by lodash/mer…
Browse files Browse the repository at this point in the history
…ge (#170)
  • Loading branch information
kbzowski authored and diegohaz committed Apr 30, 2018
1 parent c74fdb7 commit 4a6c3d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generators/app/templates/src/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable no-unused-vars */
import path from 'path'
import merge from 'lodash/merge'

/* istanbul ignore next */
const requireProcessEnv = (name) => {
Expand Down Expand Up @@ -68,5 +69,5 @@ const config = {
}
}

module.exports = Object.assign(config.all, config[config.all.env])
module.exports = merge(config.all, config[config.all.env])
export default module.exports

0 comments on commit 4a6c3d5

Please sign in to comment.