You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I use vite to make a wordpress theme and use @vue/apollo-composable to get my article data. I followed the usage in the documentation to successfully get the list of articles.
Describe the solution you'd like
When I compiled using pnpm build, I found that the packaged JavaScript was as high as 232.82 kB │ gzip: 74.01 kB, of which gzip compressed a small part. According to the size limit report 📦 of apollographql/apollo-client, less than 50KB. But my import { ApolloClient, createHttpLink, InMemoryCache } from '@apollo/client/core'` has 145KB.
Describe alternatives you've considered
I see that it imports dist/index.js, and I use dist/index.js to find that it is wrong.
Additional context
Add any other context or screenshots about the feature request here.
//app.js
import { createApp, h, provide } from 'vue'
import App from './app.vue'
import { ApolloClient, createHttpLink, InMemoryCache } from '@apollo/client/core'
import { DefaultApolloClient } from '@vue/apollo-composable'
Is your feature request related to a problem? Please describe.
I use vite to make a wordpress theme and use @vue/apollo-composable to get my article data. I followed the usage in the documentation to successfully get the list of articles.
Describe the solution you'd like
When I compiled using
pnpm build
, I found that the packagedJavaScript
was as high as232.82 kB │ gzip: 74.01 kB
, of whichgzip
compressed a small part. According to thesize limit report 📦
ofapollographql/apollo-client
, less than 50KB. But my import { ApolloClient, createHttpLink, InMemoryCache } from '@apollo/client/core'` has 145KB.Describe alternatives you've considered
I see that it imports
dist/index.js
, and I usedist/index.js
to find that it is wrong.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: