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

perf: reduce bundle size #1471

Merged
merged 10 commits into from
Jun 15, 2020
Merged

perf: reduce bundle size #1471

merged 10 commits into from
Jun 15, 2020

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented Jun 12, 2020

What's the problem this PR addresses?

The CLI is still quite large and could be smaller, this continues the adventure of reducing the size of the bundle.

Continues from #1428, #1423, #1400

How did you fix it?
Table of size changes for the CLI bundle in bytes

size reduction
Initial size 2 390 637 0
Set terser ecma version 2 389 789 848
Deduplicate lodash 2 370 872 18 917
Use tslib 2 358 591 12 281
Update inquirer (7.1.0) 2 349 279 9 312
Update inquirer (7.2.0, treeshake lodash, SBoudrias/Inquirer.js#923) 2 286 208 63 071
Clipanion esm 2 282 343 3 865
Final size 2 282 343 108 294

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I have verified that all automated PR checks pass.

@merceyz merceyz requested a review from arcanis as a code owner June 12, 2020 15:39
@arcanis arcanis merged commit 0e9b6c2 into master Jun 15, 2020
@arcanis arcanis deleted the merceyz/optimize-bundle branch June 15, 2020 07:06
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.

2 participants