Skip to content

Commit 3e0a39e

Browse files
authored
fix: optimize deps with nested config (#498)
* fix: optimize deps with nested config
1 parent 60376cf commit 3e0a39e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export default defineNuxtModule<GqlConfig>({
308308
await generateGqlTypes()
309309

310310
nuxt.hook('vite:extendConfig', (config, { isServer }) => {
311-
config.optimizeDeps?.include?.push('graphql-request')
311+
config.optimizeDeps?.include?.push('nuxt-graphql-client > graphql-request')
312312

313313
if (isServer && config.define?.['typeof document']) {
314314
delete config.define['typeof document']

0 commit comments

Comments
 (0)