Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: auto extract exports #104

Merged
merged 15 commits into from Oct 22, 2022
Merged

feat!: auto extract exports #104

merged 15 commits into from Oct 22, 2022

Conversation

antfu
Copy link
Member

@antfu antfu commented Aug 9, 2022

resolve #103

Todo:

  • Support PackagePreset
  • Global Cache
  • Package.json's meta.unimport field support

Breaking changes:

  • Internal context type change
  • generateTypeDeclarations, getExports become async

@codecov
Copy link

codecov bot commented Aug 9, 2022

Codecov Report

Merging #104 (af51820) into main (b9e2050) will decrease coverage by 0.02%.
The diff coverage is 98.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%) ⬆️
src/context.ts 93.11% <100.00%> (+0.16%) ⬆️
src/preset.ts 95.83% <100.00%> (+0.96%) ⬆️
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.

src/extract.ts Show resolved Hide resolved
src/extract.ts Outdated Show resolved Hide resolved
@antfu
Copy link
Member Author

antfu commented Aug 11, 2022

I guess we could have it for now, and leave meta.unimport for another PR with a more detailed design?

@antfu antfu marked this pull request as ready for review August 12, 2022 09:09
@antfu antfu merged commit 8ea82f1 into main Oct 22, 2022
@antfu antfu deleted the feat/auto-extract branch October 22, 2022 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto extract package exports
2 participants