diff --git a/lib/API.jsx b/lib/API.jsx index 672eeb82..f8587ba0 100644 --- a/lib/API.jsx +++ b/lib/API.jsx @@ -6,7 +6,7 @@ // Use this deferred lib so we don't have a dependency on jQuery (so we can use this module in mobile) import {Deferred} from 'simply-deferred'; -import {has} from 'lodash'; +import has from 'lodash/has'; import ExpensifyAPIDeferred from './APIDeferred'; import * as Utils from './utils'; diff --git a/lib/APIDeferred.jsx b/lib/APIDeferred.jsx index b95b966c..561beac9 100644 --- a/lib/APIDeferred.jsx +++ b/lib/APIDeferred.jsx @@ -3,7 +3,7 @@ * WIP, This is in the process of migration from web-e. Please add methods to this as is needed.| * ---------------------------------------------------------------------------------------------- */ -import {once} from 'lodash'; +import once from 'lodash/once'; import * as Utils from './utils'; import * as Func from './Func'; diff --git a/lib/PubSub.jsx b/lib/PubSub.jsx index aa0df607..3c54fe15 100644 --- a/lib/PubSub.jsx +++ b/lib/PubSub.jsx @@ -1,5 +1,5 @@ import has from 'lodash/has'; -import {once} from 'lodash'; +import once from 'lodash/once'; import Log from './Log'; import * as Utils from './utils'; diff --git a/lib/Templates.jsx b/lib/Templates.jsx index 17be9b2f..95af7543 100644 --- a/lib/Templates.jsx +++ b/lib/Templates.jsx @@ -1,5 +1,5 @@ import $ from 'jquery'; -import {template as createTemplate} from 'lodash'; +import createTemplate from 'lodash/template'; import * as Utils from './utils'; /** diff --git a/lib/components/form/element/combobox.js b/lib/components/form/element/combobox.js index e0cd4b10..baca292a 100644 --- a/lib/components/form/element/combobox.js +++ b/lib/components/form/element/combobox.js @@ -2,7 +2,11 @@ import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import cn from 'classnames'; -import {defer, has, isEqual, template, uniqBy} from 'lodash'; +import defer from 'lodash/defer'; +import has from 'lodash/has'; +import isEqual from 'lodash/isEqual'; +import template from 'lodash/template'; +import uniqBy from 'lodash/uniqBy'; import Str from '../../../str'; import DropDown from './dropdown'; import * as Utils from '../../../utils'; diff --git a/lib/components/form/element/dropdown.js b/lib/components/form/element/dropdown.js index 2b1d7d45..0d0103f7 100644 --- a/lib/components/form/element/dropdown.js +++ b/lib/components/form/element/dropdown.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; -import {uniqueId} from 'lodash'; +import uniqueId from 'lodash/uniqueId'; import DropDownItem from './dropdownItem'; const propTypes = {