Commit 9a9738d
committed
fix(transformation): Leave imports which have no specifiers unchanged
canReplace was returning true and the path was then replaced by an empty
array, which made the import disappear.1 parent c074fc6 commit 9a9738d
File tree
3 files changed
+4
-2
lines changed- source
- test/fixtures/no-specifier
3 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments