Skip to content

Commit 6bc9a29

Browse files
committed
fix: move lodash away from utils
Signed-off-by: Hunter Achieng <achienghunter@gmail.com>
1 parent ed8ade5 commit 6bc9a29

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

packages/common/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ export * as util from './util';
1010

1111
import * as metadata from './metadata';
1212
export { metadata };
13+
export { _ } from './lodash';
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _ from 'lodash';
1+
import lodash from 'lodash';
22

33
/**
44
* Lodash utility library.
@@ -8,12 +8,12 @@ import _ from 'lodash';
88
*
99
* @see https://lodash.com/docs/
1010
* @module lodash
11-
*
1211
* @example <caption>Split an array into chunks of 2 items each</caption>
1312
* fn(state => {
1413
* const items = [1, 2, 3, 4, 5];
15-
* const chunks = util_.chunk(items, 2);
14+
* const chunks = _.chunk(items, 2);
1615
* return { ...state, chunks };
1716
* });
1817
*/
19-
export default _;
18+
19+
export const _ = lodash;

packages/common/src/util/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export { default as parseDate } from './parse-date';
55
export { default as throwError } from './throw-error';
66
export { encode, decode } from './base64';
77
export { uuid } from './uuid';
8-
export { default as _ } from './lodash';
8+
99

0 commit comments

Comments
 (0)