babel-plugin-lodash icon indicating copy to clipboard operation
babel-plugin-lodash copied to clipboard

Is this plugin still relevant?

Open feketegy opened this issue 3 years ago • 4 comments

What the title says.

Am I still able to use import _ from 'lodash' with this plugin that will extract only those functions that are actually used, in the final build?

feketegy avatar Apr 19 '22 12:04 feketegy

Hi I use https://github.com/webpack-contrib/webpack-bundle-analyzer to find it is still relevant.

Without it, 71.48 kb without babel-plugin-lodash

With it, 36 kb with babel-plugin-lodash

Too bad it has not been updated for 4 years!

qiulang avatar Oct 18 '22 09:10 qiulang

I don't think it's relevant at least once you compute the size of the final files https://github.com/lodash/lodash/issues/5570

trajano avatar Dec 12 '22 17:12 trajano

it is relevant except if you already use https://github.com/umijs/babel-plugin-import

woodreamz avatar Feb 20 '23 18:02 woodreamz