babel / babel/minify

Remove unused imports

Open
#586 14 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
4.4k
Forks
217
PR merge metrics
No merged PRs in 30d

Description

```js
// Map won't be eliminated when bundling
import Map from 'lodash.map'
```
There are non-pure modules with side effects. Is there any way to remove the unused import regardless of side-effect.
[Possible related rollup feature](https://github.com/rollup/rollup/pull/1388)
Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.