Skip to content

Commit

Permalink
Import less Lodash
Browse files Browse the repository at this point in the history
This module imports the entirety of Lodash which is very large. This results in large bundle sizes for anyone consuming this module. 

This PR imports only the merge function from Lodash.
  • Loading branch information
leahciMic authored Nov 9, 2017
1 parent 110f158 commit 21aae09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { resolve } = require('path')
const { merge } = require('lodash')
const merge = require('lodash/merge')

export default async function module (moduleOptions) {
// Apply defaults
Expand Down

0 comments on commit 21aae09

Please sign in to comment.