module.exports = { build: { vendor: ['vue-apollo', 'apollo-client'] }, plugins: [ // Will inject the plugin in the $root app and also in the context as `apolloProvider` { src: '~plugins/apollo.js', injectAs: 'apolloProvider' } ] }