umijs / babel-plugin-import

Modularly import plugin for babel.
3.15k stars 403 forks source link

`babel-plugin-import` ignores named import from `lodash` #591

Open TomSssM opened 2 years ago

TomSssM commented 2 years ago

I use babel-plugin-import together with @babel/preset-typescript and ran into bug that babel doesn't include named import of the lodash noop function if the noop function is used as any. I have put together a little minimal reproducible repo to show everything in more detail. What am I doing wrong? Is it a bug?