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

build(package): omit formatting generated index to reduce package size #67

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Jul 28, 2024

Small formatting change that can reduce the unpacked NPM package size by a non-trivial amount.

By omitting the JSON formatting, npm pack shows the following computed sizes:

- npm notice package size:  18.3 kB
+ npm notice package size:  18.7 kB                         

- npm notice unpacked size: 84.8 kB                      
+ npm notice unpacked size: 103.5 kB 

@metonym metonym merged commit fccaad1 into main Jul 28, 2024
1 check passed
@metonym metonym deleted the optimize-package-size branch July 28, 2024 19:15
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.

1 participant