Skip to content

ES6 module "lodash-es" increases bundle size #18556

Closed Answered by yogeshgalav
yogeshgalav asked this question in Q&A
Discussion options

You must be logged in to vote

The best way I found to optimize my legacy code is to import lodash functions separately,
convert

import _ from 'lodash-es';

to

import {map as l_map} from 'lodash-es';

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@remidej
Comment options

Answer selected by yogeshgalav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants