Skip to content

Commit 0e0d46e

Browse files
author
luis.reischak
committed
updated lodash modules import to reduce bundle size
1 parent e8224dd commit 0e0d46e

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

src/js/actions/trello.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { merge, isEqual } from 'lodash';
1+
import merge from 'lodash/merge';
2+
import isEqual from 'lodash/isEqual';
23

34
import * as api from 'api/trello.js';
45
import * as store from 'model/store.js';

src/js/model/store.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { isEqual, merge } from 'lodash';
1+
import isEqual from 'lodash/isEqual';
2+
import merge from 'lodash/merge';
23

34
let initialData = {
45
isLoading: false,

src/js/view/components/CardLocationSelector/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isEqual } from 'lodash';
1+
import isEqual from 'lodash/isEqual';
22

33
import React from 'react';
44
import styles from './styles.scss';

src/js/view/components/CheckboxList/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React from 'react';
22
import styles from './styles.scss';
33
import classNames from 'classnames';
4-
import { isEqual, isArray } from 'lodash';
4+
import isEqual from 'lodash/isEqual';
5+
import isArray from 'lodash/isArray';
56

67
import { CheckIcon } from './styles.js';
78

src/js/view/helper/current-data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isEqual } from 'lodash';
1+
import isEqual from 'lodash/isEqual';
22
import * as store from 'model/store.js';
33
import * as actions from 'actions/trello.js';
44

src/js/view/helper/filter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isEqual } from 'lodash';
1+
import isEqual from 'lodash/isEqual';
22

33
const isFilterPassed = (filterChecks) => {
44
for (let k in filterChecks) {

0 commit comments

Comments
 (0)