diff --git a/src/module.ts b/src/module.ts index 46493e1..9e0df18 100644 --- a/src/module.ts +++ b/src/module.ts @@ -214,6 +214,7 @@ export default defineNuxtModule({ nuxt.options.alias['#gql/*'] = resolver.resolve(nuxt.options.buildDir, 'gql', '*') addTemplate({ + write: 'true', filename: 'gql.mjs', getContents: () => ctx.generateImports?.() || '' })