From 2ade375c204301dfbc4121f1e47d1c191d8c89e1 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sun, 25 Sep 2016 21:53:26 +0800 Subject: [PATCH] babel-plugin-lodash to slim down bundle size by 300 KB --- .babelrc | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index 2ad52bf1..f9151299 100644 --- a/.babelrc +++ b/.babelrc @@ -4,6 +4,7 @@ "es2015" ], "plugins": [ + "lodash", "transform-class-properties" ] } diff --git a/package.json b/package.json index aa2caef9..02dc7237 100644 --- a/package.json +++ b/package.json @@ -21,17 +21,18 @@ "autolinker": "0.17.1", "babel-cli": "6.11.4", "babel-loader": "6.2.4", + "babel-plugin-lodash": "^3.2.9", "babel-plugin-transform-class-properties": "6.11.5", "babel-preset-es2015": "6.9.0", "babel-preset-react": "6.11.1", "backbone": "1.0.0", "csv-parse": "1.1.7", + "lodash": "4.16.1", "node-uuid": "1.2.0", "react": "15.3.0", "react-dom": "15.3.0", "requirejs": "2.1.1", "socket.io": "0.9.12", - "underscore": "1.4.4", "webpack": "1.13.1" }, "devDependencies": {