googleapis / google-api-nodejs-client

Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
https://googleapis.dev/nodejs/googleapis/latest/
Apache License 2.0
11.43k stars 1.92k forks source link

add browser integration tests #1740

Open bcoe opened 5 years ago

bcoe commented 5 years ago

We claim in various responses to issues and docs that google-api-nodejs-client can be used with WebPack, and deployed in a browser context.

We, however, have no integration tests that ensure that this is possible ... in fact, we've broken the ability to WebPack google-api-nodejs-client a few times in recent months, due to introducing Node.js-specific APIs.

We should:

JustinBeckwith commented 5 years ago

We have a fairly large set of tools we use to do this in other libs, like https://github.com/googleapis/gaxios. I kinda wonder out loud if there's a "standardjs of webpack" that we could use or make to reduce the amount of stuff we need for this (thinking out loud)