jonathanpmartins / v-money3

Vue3 currency input/directive mask
MIT License
103 stars 27 forks source link

Feat/code refactory #47

Closed sougiovn closed 3 years ago

sougiovn commented 3 years ago

My goal was to improve code readability as a new contributor and decrease the final bundle size.


Building in my local machine

Before refactoring

bundle type uncompressed brotli
es.js 11.13 KiB 3.35 KiB
umd.js 11.56 KiB 3.45 KiB

After refactoring

bundle type uncompressed brotli
es.js 9.62 KiB 3.12 KiB
umd.js 9.96 KiB 3.22 KiB

Decrease percentage

bundle type uncompressed brotli
es.js ~13,57% ~6,87%
umd.js ~13,85% ~6,67%
jonathanpmartins commented 3 years ago

Nice work! Will merge it right now...