has anyone solved including node modules in a webt...
# prisma-whats-new
l
has anyone solved including node modules in a webtask and not exceeding the max size they've set (122 kb)? For example, if you follow the tutorial here (https://www.graph.cool/docs/tutorials/calling-the-api-with-lokka-taith2va1l/), once you've included
lokka-transport-http
you'll exceed the max size and won't be able to run
wt create build/like-posts-lokka.js
. Here's a relevant GitHub issue with a comment from Soren too (https://github.com/auth0/webtask-bundle/issues/5).
n
@lewisblackwood yes! read the last comment in this thread: https://github.com/auth0/webtask-bundle/issues/5#issuecomment-262311848
l
hmm, it still doesn't seem to be small enough even with the
-m
flag!
For example, if I follow the graphcool tutorial I end up with a 320kb file
n
Aw that's a shame - choosing a plain HTTP client would be probably the best approach: https://www.graph.cool/docs/tutorials/calling-the-api-with-request-ih4etheigo/
l
great, will do!
n
the repo itself has a quick example with fetch too, if that's what you prefer!
l
someone has recently requested
lokka-transport-http
for inclusion in the webtask runtime: https://github.com/tehsis/webtaskio-canirequire/issues/121
n
That would be @mel šŸ™‚
šŸ™Œ 1
m
FWIW I’m actually using firebase functions now because it gives me more control over deps
n
gotcha! šŸ™‚
g
@mel if you are using webtask we now support specifying dependencies for modules in package.json. I replied to your issue with details.
šŸ™Œ 1