mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 22:29:17 +02:00
Use specific methods from lodash to reduce bundle size
This commit is contained in:
parent
17d86a2832
commit
b2acd1e8a8
25 changed files with 38 additions and 24 deletions
13
front/src/lodash.js
Normal file
13
front/src/lodash.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
// cherry-pick specific lodash methods here to reduce bundle size
|
||||
|
||||
export default {
|
||||
clone: require('lodash/clone'),
|
||||
debounce: require('lodash/debounce'),
|
||||
get: require('lodash/get'),
|
||||
merge: require('lodash/merge'),
|
||||
range: require('lodash/range'),
|
||||
shuffle: require('lodash/shuffle'),
|
||||
sortBy: require('lodash/sortBy'),
|
||||
throttle: require('lodash/throttle'),
|
||||
uniq: require('lodash/uniq'),
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue