Skip to content

Commit e981a2c

Browse files
size(core): replace lodash with lodash-es
1 parent 08ed606 commit e981a2c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

build/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ ${ pkg.name } v${ pkg.version }
169169
'safe-buffer': require.resolve('safe-buffer'),
170170
//'es-abstract': require.resolve('es-abstract'),
171171

172+
'lodash': 'lodash-es',
173+
172174
'semver': require.resolve('semver'),
173175
'lru-cache': require.resolve('lru-cache'),
174176

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"bn.js": "5",
5353
"buffer": "^6.0.3",
5454
"core-js": "^3.9.1",
55+
"lodash-es": "^4.17.21",
5556
"lru-cache": "^6.0.0",
5657
"path-browserify": "^1.0.1",
5758
"process": "^0.11.10",
@@ -67,6 +68,7 @@
6768
"devDependencies": {
6869
"babel-loader": "^8.2.2",
6970
"caniuse-api": "^3.0.0",
71+
"compression-webpack-plugin": "^7.1.2",
7072
"cross-env": "^7.0.3",
7173
"duplicate-package-checker-webpack-plugin": "^3.0.0",
7274
"jest": "^26.6.3",
@@ -79,7 +81,6 @@
7981
"typescript": "^4.2.2",
8082
"webpack": "^5.24.3",
8183
"webpack-bundle-analyzer": "^4",
82-
"compression-webpack-plugin": "^7.1.2",
8384
"webpack-cli": "^4.5.0"
8485
}
8586
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4503,6 +4503,11 @@ locate-path@^6.0.0:
45034503
dependencies:
45044504
p-locate "^5.0.0"
45054505

4506+
lodash-es@^4.17.21:
4507+
version "4.17.21"
4508+
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee"
4509+
integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==
4510+
45064511
lodash.camelcase@^4.3.0:
45074512
version "4.3.0"
45084513
resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"

0 commit comments

Comments
 (0)