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

fix: Expose PercyAgent as a global always #178

Merged
merged 1 commit into from
May 3, 2019

Conversation

Robdel12
Copy link
Contributor

@Robdel12 Robdel12 commented May 3, 2019

What is this?

Second time is the charm right? Setting extend: true in the rollup config allows
the bundler to extend the global namespace (window).

So, the output now looks like this.PercyAgent = (where this is the
window object)

I cut a beta release of this and tested it on the various SDKs (btw, we need a better process for this):

This one should do the trick 👍

Second time is the charm right? We're going to beta test this one but
it should do it. Setting `extend: true` in the rollup config allows
the bundler to extend the global namespace (window).

So the output now looks like `this.PercyAgent = ` (where `this` is the
window object)
@Robdel12 Robdel12 requested review from djones and timhaines May 3, 2019 14:41
Copy link
Contributor

@timhaines timhaines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Robdel12 Robdel12 merged commit 698067b into master May 3, 2019
@Robdel12 Robdel12 deleted the rd/fix-iife-bundle-for-real branch May 3, 2019 14:51
djones pushed a commit that referenced this pull request May 3, 2019
## [0.4.4](v0.4.3...v0.4.4) (2019-05-03)

### Bug Fixes

* Expose `PercyAgent` as a global always ([#178](#178)) ([698067b](698067b))
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.

2 participants