Added babel-plugin-lodash library for automatic cherry-picking of the Lodash modules

This commit is contained in:
Filip Barl
2016-12-06 17:34:44 +01:00
parent 524e2e2e9a
commit 4142474e46
4 changed files with 6 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
{
"plugins": ["lodash"],
"presets": ["es2015", "react"]
}

View File

@@ -41,6 +41,7 @@
"babel-eslint": "5.0.0",
"babel-jest": "17.0.2",
"babel-loader": "6.2.8",
"babel-plugin-lodash": "3.2.10",
"babel-preset-es2015": "6.18.0",
"babel-preset-react": "6.16.0",
"clean-webpack-plugin": "0.1.14",

View File

@@ -36,10 +36,9 @@ module.exports = {
'./app/scripts/terminal-main',
'webpack-hot-middleware/client'
],
vendors: ['babel-polyfill', 'classnames', 'dagre', 'filesize', 'immutable', 'lodash',
vendors: ['babel-polyfill', 'classnames', 'dagre', 'filesize', 'immutable',
'moment', 'page', 'react', 'react-dom', 'react-motion', 'react-redux', 'redux',
'redux-thunk', 'reqwest', 'xterm',
'webpack-hot-middleware/client'
'redux-thunk', 'reqwest', 'xterm', 'webpack-hot-middleware/client'
]
},

View File

@@ -35,8 +35,8 @@ module.exports = {
'terminal-app': './app/scripts/terminal-main',
// keep only some in here, to make vendors and app bundles roughly same size
vendors: ['babel-polyfill', 'classnames', 'immutable',
'lodash', 'react', 'react-dom', 'react-redux',
'redux', 'redux-thunk']
'react', 'react-dom', 'react-redux', 'redux', 'redux-thunk'
]
},
output: {