unimport
unimport copied to clipboard
feat!: auto extract exports
trafficstars
resolve #103
Todo:
- [x] Support
PackagePreset - [x] Global Cache
- [ ] Package.json's
meta.unimportfield support
Breaking changes:
- Internal context type change
generateTypeDeclarations,getExportsbecome async
Codecov Report
Merging #104 (af51820) into main (b9e2050) will decrease coverage by
0.02%. The diff coverage is98.52%.
@@ Coverage Diff @@
## main #104 +/- ##
==========================================
- Coverage 98.38% 98.36% -0.03%
==========================================
Files 21 23 +2
Lines 1677 1839 +162
Branches 248 270 +22
==========================================
+ Hits 1650 1809 +159
- Misses 27 30 +3
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/extract.ts | 95.89% <95.89%> (ø) |
|
| src/addons/vue-template.ts | 95.45% <100.00%> (+0.06%) |
:arrow_up: |
| src/context.ts | 93.11% <100.00%> (+0.16%) |
:arrow_up: |
| src/preset.ts | 95.83% <100.00%> (+0.96%) |
:arrow_up: |
| src/types.ts | 100.00% <100.00%> (ø) |
|
| src/utils.ts | 97.56% <100.00%> (ø) |
|
| test/auto-extract.test.ts | 100.00% <100.00%> (ø) |
|
| test/dts.test.ts | 100.00% <100.00%> (ø) |
|
| test/preset.test.ts | 100.00% <100.00%> (ø) |
|
| test/vue-template.test.ts | 100.00% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
I guess we could have it for now, and leave meta.unimport for another PR with a more detailed design?