File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ export default defineNuxtModule<ModuleOptions>({
8181 ]
8282
8383 addServerImports ( imports )
84+ addImports ( imports )
8485
8586 updateRuntimeConfig ( {
8687 discofetch : getRuntimeConfig ( options ) ,
@@ -91,15 +92,13 @@ export default defineNuxtModule<ModuleOptions>({
9192 nuxt . options . nitro . typescript . tsConfig . include ??= [ ]
9293 nuxt . options . nitro . typescript . tsConfig . include . push ( outputDir )
9394
94- if ( ! options . private ) {
95- addImports ( imports )
95+ nuxt . options . typescript . tsConfig . include ??= [ ]
96+ nuxt . options . typescript . tsConfig . include . push ( outputDir )
9697
98+ if ( ! options . private ) {
9799 updateRuntimeConfig ( {
98100 public : { discofetch : getRuntimeConfig ( options ) } ,
99101 } )
100-
101- nuxt . options . typescript . tsConfig . include ??= [ ]
102- nuxt . options . typescript . tsConfig . include . push ( outputDir )
103102 }
104103 } ,
105104} )
You can’t perform that action at this time.
0 commit comments