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 b5c5503 commit 294a269Copy full SHA for 294a269
src/module.ts
@@ -272,6 +272,17 @@ export default defineNuxtModule<SanityModuleOptions>({
272
})
273
274
nuxt.hook('nitro:config', (config) => {
275
+ config.typescript = defu(config.typescript, {
276
+ tsConfig: {
277
+ compilerOptions: {
278
+ paths: {
279
+ ['#sanity-client']: [clientPath],
280
+ ['#sanity-composables']: [composablesFile],
281
+ },
282
283
284
+ })
285
+
286
if (config.imports === false) return
287
288
config.virtual ||= {}
0 commit comments