Skip to content

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