Skip to content

Commit

Permalink
Reduce the bundle size
Browse files Browse the repository at this point in the history
We're not ignoring anything when publishing this module. It's not a
major thing but we can reduce a bit of overhead.

By adding an `.npmignore` file we go from
23.2 KB packed, 80.4 KB unpacked to
15.9 KB packed, 48.6 KB unpacked.

That's 7.3 KB less each time someone downloads this module. Based on
npm downloads, that's about 21.9 MB of downloading saved per month.
  • Loading branch information
rowanmanning committed Jul 29, 2024
1 parent ae778ce commit bf8b58b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.circleci
.editorconfig
.eslintrc.js
.github
.nvmrc
.prettierrc
.toolkit*
CODEOWNERS
renovate.json
secret-squirrel.js
test
tsconfig.json

0 comments on commit bf8b58b

Please sign in to comment.