perf(create-nuxt): refactor for improved tree-shaking#1044
perf(create-nuxt): refactor for improved tree-shaking#1044
Conversation
Bundle Stats — nuxi size comparisonHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded
Removed
Bigger
Smaller
Unchanged
|
Bundle Stats — create-nuxt size comparisonHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset (largest 100 files by percent change)
View detailed bundle breakdownAdded
Removed
Bigger
Smaller No assets were smaller Unchanged
|
Bundle Stats — nuxt-cli size comparisonHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded
Removed
Bigger
Smaller
Unchanged
|
commit: |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1044 +/- ##
=======================================
Coverage ? 27.03%
=======================================
Files ? 76
Lines ? 4002
Branches ? 214
=======================================
Hits ? 1082
Misses ? 2891
Partials ? 29 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #1044 will not alter performanceComparing Summary
|
|
I'm really not sure if the benchmark CI failing is related to this PR. Could you please confirm @danielroe? |
danielroe
left a comment
There was a problem hiding this comment.
oh beautiful! thank you for tackling this one ❤️
🔗 Linked issue
Resolves #927
❓ Type of change
📚 Description
This PR refactors
nuxito avoid including all possible commands in bundle, when possible. Mainly this was achieved by isolatingrunCommandfromcommands. This was especially important forcreate-nuxtas it was only using themodule add,init, andpreparecommands programmatically. After these changes, the dist size forcreate-nuxtcan be reduced to approximately 4.2 MB!