SocialGouv / matomo-next

Matomo for Next.js applications
Apache License 2.0
152 stars 22 forks source link

reduce bundle size #37

Closed revolunet closed 3 years ago

revolunet commented 3 years ago

One could reduce the 2.6kb gzip bundle size by replacing some babel functions

https://css-tricks.com/avoid-heavy-babel-transformations-by-sometimes-not-writing-modern-javascript/

revolunet commented 3 years ago

down to 1.7kb with TS build, a bit better

revolunet commented 3 years ago

https://bundlephobia.com/result?p=@socialgouv/matomo-next@1.2.0