Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for a more granular auto-import config #587

Open
wants to merge 1 commit into
base: v5
Choose a base branch
from

Conversation

Eazash
Copy link

@Eazash Eazash commented Jan 1, 2024

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

Copy link

netlify bot commented Jan 1, 2024

Deploy Preview for apollo-module canceled.

Name Link
🔨 Latest commit 3dc06a1
🔍 Latest deploy log https://app.netlify.com/sites/apollo-module/deploys/659271c04fac170008fdef08

Sign up for free to 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.

None yet

1 participant