mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
Use lodash with es modules
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user