Skip to content

Commit

Permalink
Merge pull request #1207 from DevSide/lodash-es
Browse files Browse the repository at this point in the history
use lodash-es for es6 build
  • Loading branch information
xile611 committed Jul 5, 2018
2 parents db0f3f2 + df578a0 commit efac39e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"transform-class-properties",
"transform-object-rest-spread",
"transform-function-bind",
"lodash"
"lodash",
"use-lodash-es"
],
"presets": [["es2015", { "modules": false }], "react"],
"env": {
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"d3-scale": "1.0.6",
"d3-shape": "1.2.0",
"lodash": "~4.17.4",
"lodash-es": "~4.17.4",
"prop-types": "^15.6.0",
"react-resize-detector": "1.1.0",
"react-smooth": "1.0.0",
Expand All @@ -72,6 +73,7 @@
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-plugin-transform-function-bind": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-use-lodash-es": "^0.2.0",
"babel-polyfill": "^6.26.0",
"babel-preset-airbnb": "^2.4.0",
"babel-preset-es2015": "^6.24.1",
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,10 @@ babel-plugin-transform-strict-mode@^6.24.1:
babel-runtime "^6.22.0"
babel-types "^6.24.1"

babel-plugin-use-lodash-es@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/babel-plugin-use-lodash-es/-/babel-plugin-use-lodash-es-0.2.0.tgz#252ba9d68a6c1758be947e9a88b0064ecf8351d7"

babel-polyfill@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
Expand Down Expand Up @@ -3871,6 +3875,10 @@ locate-path@^2.0.0:
p-locate "^2.0.0"
path-exists "^3.0.0"

lodash-es@~4.17.4:
version "4.17.5"
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.5.tgz#9fc6e737b1c4d151d8f9cae2247305d552ce748f"

lodash-webpack-plugin@^0.11.4:
version "0.11.4"
resolved "https://registry.yarnpkg.com/lodash-webpack-plugin/-/lodash-webpack-plugin-0.11.4.tgz#6c3ecba3d4b8d24b53940b63542715c5ed3c4ac5"
Expand Down

0 comments on commit efac39e

Please sign in to comment.