Commit f5c6b5e
committed
fix: handle empty NamedImport to prevent malformed output
When disableImportRemovalOnOrganize is true or a library is in
ignoredFromRemoval, an `import {} from 'lib'` would pass through
the pipeline and produce `import from 'lib';` (invalid syntax).
Now renders as `import 'lib';` (side-effect import) instead.1 parent 983ff0a commit f5c6b5e
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
917 | 923 | | |
918 | 924 | | |
919 | 925 | | |
| |||
0 commit comments