mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
import composables from #imports
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user