Skip to content

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.

1 participant