Skip to content

Commit

Permalink
Merge pull request #45 from humanmade/optimize-size
Browse files Browse the repository at this point in the history
Optimize size
  • Loading branch information
rmccue authored Dec 30, 2020
2 parents 1ba513f + ed5be36 commit 6301dbf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handler.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isFunction } from 'lodash/lang';
import isFunction from 'lodash/isFunction';
import qs from 'qs';

import { parseResponse, mergePosts } from './utilities';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isFunction } from 'lodash/lang';
import isFunction from 'lodash/isFunction';

export const resolve = ( maybeFunc, ...args ) => isFunction( maybeFunc ) ? maybeFunc( ...args ) : maybeFunc;

Expand Down
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module.exports = {
],
},
externals: {
'lodash': 'commonjs lodash',
'qs': 'commonjs qs',
'react': 'commonjs react',
'react-redux': 'commonjs react-redux',
},
Expand Down

0 comments on commit 6301dbf

Please sign in to comment.