Skip to content

Conversation

@amanda-ruby
Copy link

The GPP stub script does not work as currently described in the README--it immediately runs upon import and does not have an importable function. I've updated the README to reflect this.

Copy link
Collaborator

@HeinzBaumann HeinzBaumann left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks

@amanda-ruby
Copy link
Author

@HeinzBaumann I don't think I have permission to merge, do you?

Copy link

@NevilleS NevilleS left a comment

Choose a reason for hiding this comment

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

Thanks for this update @amanda-ruby; I tried this out on a toy project where I:

  1. npm install the @iabgpp/stub module
  2. Add a single gppStub.ts file that just does import "@iabgpp/stub"
  3. Bundle that into a dist/gppStub.js script
  4. Include with <script src="dist/gppStub.js" /> in an HTML page
  5. Confirm the __gpp stub exists

Not having a default export like the docs indicate isn't a great dev experience (as described here: #59) but at least this README update makes the docs correct

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.

5 participants