prismicio / gatsby-source-prismic-graphql

Gatsby source plugin for Prismic GraphQL
MIT License
17 stars 14 forks source link

Apollo Client in production build #45

Open hazem3500 opened 4 years ago

hazem3500 commented 4 years ago

After inspecting the bundle with gatsby-plugin-webpack-bundle-analyzer I've found that apollo-client is included in the bundle, and it's probably this package that's having it as a dependency. So why do we need to have apollo-client in production build? don't we only need to query the prismic API at build-time, not run-time?

MarcMcIntosh commented 4 years ago

I imagine the apollo-client is needed for client side requests, such as during previews.