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

Update the UMD config to extend the global #117

Merged
merged 1 commit into from
Jan 14, 2021
Merged

Conversation

philipwalton
Copy link
Member

This PR fixes #116 by updating the UMD build config to extend the global instead of overwriteing it.

Previously, if using the UMD version of the base script with the polyfill, the webVitals global added by the polyfill would be overridden by the UMD version of the base script. Note this did not happen with the module version of the base script since it didn't use a browser global.

@philipwalton philipwalton merged commit 58f395e into master Jan 14, 2021
@philipwalton philipwalton deleted the umd-extend branch January 14, 2021 02:25
This was referenced Mar 12, 2021
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.

Not getting metrics reported for anything but TTFP and CLS (in chrome), and throwing errors (in safari).
1 participant