From d3bd110e545460b465275a6cea3157529d03d185 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 17 May 2016 11:56:55 -0700 Subject: [PATCH] Use lodash-webpack-plugin. --- package.json | 5 +++-- webpack.config.js | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2c0803da72..3e806515d3 100644 --- a/package.json +++ b/package.json @@ -61,8 +61,8 @@ }, "homepage": "http://redux.js.org", "dependencies": { - "lodash": "^4.2.1", - "lodash-es": "^4.2.1", + "lodash": "^4.13.1", + "lodash-es": "^4.13.1", "loose-envify": "^1.1.0", "symbol-observable": "^0.2.4" }, @@ -102,6 +102,7 @@ "gitbook-cli": "^0.3.4", "glob": "^6.0.4", "isparta": "^4.0.0", + "lodash-webpack-plugin": "^0.9.3", "mocha": "^2.2.5", "rimraf": "^2.3.4", "rxjs": "^5.0.0-beta.6", diff --git a/webpack.config.js b/webpack.config.js index c4fa1a800a..d8139e2219 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,5 +1,6 @@ 'use strict'; +var LodashModuleReplacementPlugin = require('lodash-webpack-plugin') var webpack = require('webpack') var env = process.env.NODE_ENV @@ -14,6 +15,7 @@ var config = { libraryTarget: 'umd' }, plugins: [ + new LodashModuleReplacementPlugin(), new webpack.optimize.OccurrenceOrderPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify(env) @@ -27,7 +29,6 @@ if (env === 'production') { compressor: { pure_getters: true, unsafe: true, - unsafe_comps: true, warnings: false } })