We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f29b612 commit 1c889caCopy full SHA for 1c889ca
packages/nuxt/src/module.ts
@@ -67,6 +67,10 @@ export default defineNuxtModule<ModuleOptions>({
67
68
nuxt.options.alias[options.alias!] = folder;
69
70
+ nuxt.hooks.hookOnce('app:templates', async () => {
71
+ await createClient(config);
72
+ });
73
+
74
// auto-import enabled
75
if (options.autoImport) {
76
await createClient(config);
@@ -107,10 +111,6 @@ export default defineNuxtModule<ModuleOptions>({
107
111
imports,
108
112
});
109
113
}
110
- } else {
- nuxt.hooks.hookOnce('app:templates', async () => {
- await createClient(config);
- });
114
115
},
116
0 commit comments