lodash / babel-plugin-lodash

Modular Lodash builds without the hassle.
Other
1.95k stars 95 forks source link

lodash.min.js is not removed from the bundle #243

Open voronianski opened 3 years ago

voronianski commented 3 years ago

I'm using Next.js with latest lodash v4.17.20 and latest babel-plugin-lodash v3.3.4 however for some reason I always get lodash.min.js inside the bundle.

As for the imports it's used as import { funcName } from 'lodash/fp' everywhere across the code.

image

This happens in an old legacy app and tried to repro with a clean setup without no luck, so I cannot provide the proper reproducible environment for now.

Maybe someone did experience the same issue before? Or maintainers know what could be the potential cause of this plugin not working?

Thanks!

grzegorzjudas commented 3 years ago

Same here. Was sure I'm missing something, but now I'm having doubts it's the setup. Planned on making a clean setup next to see what's going to happen, like you, actually.

0xdevalias commented 3 years ago

Potentially related: