Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
I was trying to figure out why my Webpack bundle included the
graphql
package, since I didn't think I depended on it anywhere. After digging through my Webpack stats in their analyzer, I discovered the culprit was usinglogErrorMessages
from @vue/apollo-util:To Reproduce
Steps to reproduce the behavior:
logErrorMessages
anywhere in your app:import { logErrorMessages } from '@vue/apollo-util'
Expected behavior
The util package would not depend on graphql.js for printing error messages, and not bloat bundle sizes.
For now, I'm just using
console.error
.Versions
vue: 2.6.11
@vue/apollo-composable: 4.0.0-alpha.6
@vue/apollo-util: 4.0.0-alpha.6