fix(dedupeImports): respect negative and zero import priorities (#527) · unjs/unimport@4f462cb · GitHub
Skip to content

Commit 4f462cb

Browse files
8ctavioantfu
andauthored
fix(dedupeImports): respect negative and zero import priorities (#527)
* fix(dedupeImports): support negative import priorities * test(dedupeImports): consider imports' negative priorities * fix: apply @danielroe's fix --------- Co-authored-by: Anthony Fu <github@antfu.me>
1 parent 10a9ef3 commit 4f462cb

2 files changed

Lines changed: 58 additions & 3 deletions

File tree

src/utils.ts

Lines changed: 6 additions & 3 deletions

test/dedupe.test.ts

Lines changed: 52 additions & 0 deletions

0 commit comments

Comments
 (0)