From 23d2954aae95f9d2027e7bf1074b2b924e937c93 Mon Sep 17 00:00:00 2001 From: Robert Soriano Date: Sun, 30 Oct 2022 13:35:58 -0700 Subject: [PATCH] import composables from #imports --- src/client/index.ts | 3 ++- tsup.config.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/index.ts b/src/client/index.ts index 0c87ee3..6606899 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -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 diff --git a/tsup.config.ts b/tsup.config.ts index 73d3a7e..15a4a82 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -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 }) {