Skip to content

Commit 8dce56d

Browse files
committed
add lodash babel plugin
1 parent 97213a8 commit 8dce56d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"presets": ["es2015", "stage-2"],
3-
"plugins": ["transform-runtime"],
3+
"plugins": ["transform-runtime", "lodash"],
44
"comments": false
55
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"devDependencies": {
4242
"babel-core": "6.22.1",
4343
"babel-loader": "6.2.10",
44+
"babel-plugin-lodash": "3.2.11",
4445
"babel-plugin-transform-runtime": "6.22.0",
4546
"babel-preset-es2015": "6.22.0",
4647
"babel-preset-stage-2": "6.22.0",

yarn.lock

+8-1
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,13 @@ babel-plugin-check-es2015-constants@^6.22.0:
480480
dependencies:
481481
babel-runtime "^6.22.0"
482482

483+
484+
version "3.2.11"
485+
resolved "https://registry.yarnpkg.com/babel-plugin-lodash/-/babel-plugin-lodash-3.2.11.tgz#21c8fdec9fe1835efaa737873e3902bdd66d5701"
486+
dependencies:
487+
glob "^7.1.1"
488+
lodash "^4.17.2"
489+
483490
babel-plugin-syntax-async-functions@^6.8.0:
484491
version "6.13.0"
485492
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
@@ -2835,7 +2842,7 @@ glob@^6.0.0:
28352842
once "^1.3.0"
28362843
path-is-absolute "^1.0.0"
28372844

2838-
glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@~7.1.1:
2845+
glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@~7.1.1:
28392846
version "7.1.1"
28402847
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
28412848
dependencies:

0 commit comments

Comments
 (0)