Skip to content

Commit 1a8b672

Browse files
cspotcodeBenjamin E. Coe
authored andcommitted
refactor: better performance by eliminating a bunch of unnecessary requires (#25)
1 parent 2e74f1b commit 1a8b672

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
const yargs = require('yargs/yargs');
44
const flatten = require('flat');
5-
const castArray = require('lodash/castArray');
6-
const some = require('lodash/some');
7-
const isPlainObject = require('lodash/isPlainObject');
8-
const camelCase = require('lodash/camelCase');
9-
const kebabCase = require('lodash/kebabCase');
10-
const omitBy = require('lodash/omitBy');
5+
const {castArray, some, isPlainObject, camelCase, kebabCase, omitBy} = require('lodash');
116

127
function isAlias(key, alias) {
138
return some(alias, (aliases) => castArray(aliases).indexOf(key) !== -1);

0 commit comments

Comments
 (0)