import composables from #imports

This commit is contained in:
Robert Soriano
2022-10-30 13:35:58 -07:00
parent 3c39746fa2
commit 23d2954aae
2 changed files with 3 additions and 2 deletions

View File

@@ -5,8 +5,9 @@ import type {
} from '@trpc/server'
import { createFlatProxy, createRecursiveProxy } from '@trpc/server/shared'
import { hash } from 'ohash'
import { useAsyncData, useState } from 'nuxt/app'
import type { DecoratedProcedureRecord } from './types'
// @ts-ignore: Nuxt internal
import { useAsyncData, useState } from '#imports'
/**
* Calculates the key used for `useAsyncData` call

View File

@@ -5,7 +5,7 @@ export default defineConfig({
format: ['cjs', 'esm'],
splitting: false,
clean: true,
external: ['#app'],
external: ['#app', '#imports'],
dts: true,
// @ts-expect-error: Missing type
outExtension({ format }) {