Use lodash with es modules

This commit is contained in:
Chi Vinh Le
2018-01-10 17:54:06 +01:00
parent bdcc9273f1
commit 7036aa5bad
4 changed files with 6 additions and 3 deletions
@@ -3,7 +3,7 @@ import {compose, gql} from 'react-apollo';
import StorySearch from '../components/StorySearch';
import {withRouter} from 'react-router';
import withQuery from 'coral-framework/hocs/withQuery';
import {isEmpty} from 'lodash';
import isEmpty from 'lodash/isEmpty';
class StorySearchContainer extends React.Component {
constructor(props) {
+1
View File
@@ -124,6 +124,7 @@
"kue": "0.11.6",
"linkify-it": "^2.0.3",
"lodash": "^4.16.6",
"lodash-es": "^4.16.6",
"marked": "^0.3.6",
"material-design-lite": "^1.2.1",
"metascraper": "1.0.7",
+3 -1
View File
@@ -121,7 +121,9 @@ const config = {
'graphql-anywhere': path.resolve(__dirname, 'client/coral-framework/graphql/anywhere'),
'plugin-api': path.resolve(__dirname, 'plugin-api/'),
plugins: path.resolve(__dirname, 'plugins/'),
pluginsConfig: pluginsPath
pluginsConfig: pluginsPath,
'lodash': path.resolve(__dirname, path.resolve(__dirname, 'node_modules/lodash-es')),
'lodash.isequal': path.resolve(__dirname, 'node_modules/lodash-es/isEqual'),
},
modules: [
path.resolve(__dirname, 'plugins'),
+1 -1
View File
@@ -5387,7 +5387,7 @@ locate-path@^2.0.0:
p-locate "^2.0.0"
path-exists "^3.0.0"
lodash-es@^4.2.1:
lodash-es@^4.16.6, lodash-es@^4.2.1:
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.4.tgz#dcc1d7552e150a0640073ba9cb31d70f032950e7"