Skip to content

Allow for a more granular auto-import config - #587

Open
Eazash wants to merge 1 commit into
nuxt-modules:v5from
Eazash:feat/granular-autoimport-config
Open

Allow for a more granular auto-import config#587
Eazash wants to merge 1 commit into
nuxt-modules:v5from
Eazash:feat/granular-autoimport-config

Conversation

@Eazash

Copy link
Copy Markdown

This PR adds the ability to selectively disable auto-imports for the gql function or vue-apollo composables.

export default defineNuxtConfig({
// ...
apollo: {
autoImports: {
gql: false,
'vue-apollo': true
},
})

The motivation is to allow for custom autoimports for the gql function from other sources. One particular use case is when looking to add an autoimport from the autogenerated tag function provided by graphql-codegen that is typesafe

@netlify

netlifyBot commented Jan 1, 2024

Copy link
Copy Markdown

Deploy Preview for apollo-module canceled.

NameLink
🔨 Latest commit3dc06a1
🔍 Latest deploy loghttps://app.netlify.com/sites/apollo-module/deploys/659271c04fac170008fdef08

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Eazash