gatsby-source-prismic-graphql icon indicating copy to clipboard operation
gatsby-source-prismic-graphql copied to clipboard

Apollo Client in production build

Open hazem3500 opened this issue 5 years ago • 1 comments

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?

hazem3500 avatar Aug 20 '20 10:08 hazem3500

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

MarcMcIntosh avatar Sep 11 '20 13:09 MarcMcIntosh