Skip to content

Commit 1d8d268

Browse files
committed
fix: use lodash instead of modular lodash builds
1 parent e5da8c6 commit 1d8d268

File tree

4 files changed

+55
-14
lines changed

4 files changed

+55
-14
lines changed

.babelrc

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
{
2-
"presets": ["es2015", "stage-1"],
3-
"plugins": [
4-
"transform-runtime",
5-
"syntax-flow",
6-
"transform-flow-comments"
2+
presets: [
3+
'es2015',
4+
'stage-1',
75
],
8-
"env": {
9-
"test": {
10-
"plugins": ["istanbul"]
11-
}
12-
}
13-
}
6+
plugins: [
7+
'transform-runtime',
8+
'syntax-flow',
9+
'transform-flow-comments',
10+
'lodash',
11+
],
12+
env: {
13+
test: {
14+
plugins: [
15+
'istanbul',
16+
'lodash',
17+
],
18+
},
19+
},
20+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"babel-core": "^6.18.2",
6363
"babel-eslint": "^8.0.0",
6464
"babel-plugin-istanbul": "^4.1.1",
65+
"babel-plugin-lodash": "^3.3.4",
6566
"babel-plugin-syntax-flow": "^6.18.0",
6667
"babel-plugin-transform-flow-comments": "^6.17.0",
6768
"babel-plugin-transform-runtime": "^6.15.0",
@@ -89,7 +90,7 @@
8990
"validate-commit-msg": "^2.8.2"
9091
},
9192
"dependencies": {
92-
"lodash.mapvalues": "^4.6.0",
93+
"lodash": "^4.17.10",
9394
"reselect": "^3.0.0"
9495
}
9596
}

src/featureStatesReducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @flow
22

33
import {ADD_FEATURE, LOAD_FEATURE, INSTALL_FEATURE, REPLACE_FEATURE, SET_FEATURE_STATE, LOAD_INITIAL_FEATURES} from './actions'
4-
import mapValues from 'lodash.mapvalues'
4+
import { mapValues } from "lodash"
55
import type {Reducer} from 'redux'
66
import type {FeatureStates, FeatureAction, CreateReducer} from './index.js.flow'
77

yarn.lock

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
dependencies:
2626
"@babel/types" "7.0.0-beta.31"
2727

28+
"@babel/helper-module-imports@^7.0.0-beta.49":
29+
version "7.0.0-beta.51"
30+
resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0-beta.51.tgz#ce00428045fbb7d5ebc0ea7bf835789f15366ab2"
31+
dependencies:
32+
"@babel/types" "7.0.0-beta.51"
33+
lodash "^4.17.5"
34+
2835
"@babel/template@7.0.0-beta.31":
2936
version "7.0.0-beta.31"
3037
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-beta.31.tgz#577bb29389f6c497c3e7d014617e7d6713f68bda"
@@ -55,6 +62,14 @@
5562
lodash "^4.2.0"
5663
to-fast-properties "^2.0.0"
5764

65+
"@babel/types@7.0.0-beta.51", "@babel/types@^7.0.0-beta.49":
66+
version "7.0.0-beta.51"
67+
resolved "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.51.tgz#d802b7b543b5836c778aa691797abf00f3d97ea9"
68+
dependencies:
69+
esutils "^2.0.2"
70+
lodash "^4.17.5"
71+
to-fast-properties "^2.0.0"
72+
5873
"@jedwards1211/eslint-config-flow@^1.0.0":
5974
version "1.0.0"
6075
resolved "https://registry.npmjs.org/@jedwards1211/eslint-config-flow/-/eslint-config-flow-1.0.0.tgz#306baa90573f772342f53bef67ef4f2fe3f7cb8c"
@@ -554,6 +569,16 @@ babel-plugin-istanbul@^4.1.1:
554569
istanbul-lib-instrument "^1.7.5"
555570
test-exclude "^4.1.1"
556571

572+
babel-plugin-lodash@^3.3.4:
573+
version "3.3.4"
574+
resolved "https://registry.npmjs.org/babel-plugin-lodash/-/babel-plugin-lodash-3.3.4.tgz#4f6844358a1340baed182adbeffa8df9967bc196"
575+
dependencies:
576+
"@babel/helper-module-imports" "^7.0.0-beta.49"
577+
"@babel/types" "^7.0.0-beta.49"
578+
glob "^7.1.1"
579+
lodash "^4.17.10"
580+
require-package-name "^2.0.1"
581+
557582
babel-plugin-syntax-async-functions@^6.8.0:
558583
version "6.13.0"
559584
resolved "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
@@ -2254,7 +2279,7 @@ glob-parent@^2.0.0:
22542279
dependencies:
22552280
is-glob "^2.0.0"
22562281

2257-
glob@7.1.2, glob@^7.0.3, glob@^7.0.5, glob@^7.0.6, glob@^7.1.2:
2282+
glob@7.1.2, glob@^7.0.3, glob@^7.0.5, glob@^7.0.6, glob@^7.1.1, glob@^7.1.2:
22582283
version "7.1.2"
22592284
resolved "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
22602285
dependencies:
@@ -3137,6 +3162,10 @@ lodash@^4.0.0, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.4, l
31373162
version "4.17.4"
31383163
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
31393164

3165+
lodash@^4.17.10, lodash@^4.17.5:
3166+
version "4.17.10"
3167+
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
3168+
31403169
lodash@~1.3.1:
31413170
version "1.3.1"
31423171
resolved "https://registry.npmjs.org/lodash/-/lodash-1.3.1.tgz#a4663b53686b895ff074e2ba504dfb76a8e2b770"
@@ -4082,6 +4111,10 @@ require-main-filename@^1.0.1:
40824111
version "1.0.1"
40834112
resolved "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"
40844113

4114+
require-package-name@^2.0.1:
4115+
version "2.0.1"
4116+
resolved "https://registry.npmjs.org/require-package-name/-/require-package-name-2.0.1.tgz#c11e97276b65b8e2923f75dabf5fb2ef0c3841b9"
4117+
40854118
require-relative@^0.8.7:
40864119
version "0.8.7"
40874120
resolved "https://registry.npmjs.org/require-relative/-/require-relative-0.8.7.tgz#7999539fc9e047a37928fa196f8e1563dabd36de"

0 commit comments

Comments
 (0)