3 ms·
The googleapis package is absolutely ridiculously large (and the design is such that you can't import only part of it which is how it should work). I was able t
by nicoburns 4y ago
The googleapis package is absolutely ridiculously large (and the design is such that you can't import only part of it which is how it should work). I was able to remove it by depending on `google-auth-library` (an official package that googleapis uses under the hood) instead, but YMMV.
- tpxl 4y agoDoesn't this PR https://github.com/googleapis/google-api-nodejs-client/pull/2557 https://github.com/googleapis/google-api-nodejs-client/pull/... , linked in the article, address this issue (its only ~1.5 years old).
- nicoburns 4y agoHmm... it seems to. Pretty sure I dealt with this issue less than 1.5 years ago, so not sure why this didn't come up.
- danvk 4y agoYes, the underlying issue has been resolved and so this should be a relatively easy fix for any project using `googleapis`. It's not mentioned in the article, but we also added an eslint rule to ban importing `googleapis` so that this won't happen again in the future.