ES6 module "lodash-es" increases bundle size #18556
Replies: 3 comments
-
Just googling the issue returns a few potential suggestions
I'm not longer using Lodash, but just thought of replying with potential solutions anyway |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would try https://www.npmjs.com/package/@optimize-lodash/rollup-plugin, maybe this will help you |
Beta Was this translation helpful? Give feedback.
0 replies
-
The best way I found to optimize my legacy code is to import lodash functions separately,
to
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As per vue optimization page
https://vuejs.org/guide/best-practices/performance.html#page-load-optimizations
I replaced the package "lodash" with "lodash-es"
but it increased the bundle size when using vite v5.4.8 "npm run build"
from 13137.69 KiB to 13348.97 KiB
I didn't made any other change other then replacing the package.
Why it's happening? can anyone help.
Beta Was this translation helpful? Give feedback.
All reactions