prisma-labs / prisma-binding

GraphQL Binding for Prisma 1 (using GraphQL schema delegation)
https://www.prisma.io/docs/prisma-graphql-api/prisma-bindings/prisma-bindings-prb1/
MIT License
476 stars 44 forks source link

Not working in netlify functions #191

Open timsuchanek opened 6 years ago

timsuchanek commented 6 years ago

When deploying bindings to netlify, the current dynamic imports are not working. The solution for this is to separate the binary and library logic and package the binary standalone to not pollute the dependency tree.

Reproduction: https://github.com/divyenduz/yoga-prisma-netlify

RobertBroersma commented 6 years ago

I just ran into this issue as well and it works locally using your custom.webpack.js. Is there a workaround for deploying a working version to Netlify?