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

Code golf with modern syntax & features #18

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jamiebuilds
Copy link

I don't know what you intend the browser support to be for this package, but Google Analytics own browser support is limited to very modern browsers, and using some modern features can remove a decent number of bytes from this package.

@jamiebuilds
Copy link
Author

The ??= syntax isn't supported by the version of terser used in bundt so I'll make a PR over there to bump it

@jamiebuilds
Copy link
Author

PR over here lukeed/bundt#10

@jamiebuilds
Copy link
Author

Tried it with bundt@next:

  src/index.js             Filesize  (gzip)
    dist/ganalytics.js       348 B   265 B 
    dist/ganalytics.mjs      351 B   267 B 

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