From 02274fba577cc7d5847beb03bdcf6d65b2e3d41c Mon Sep 17 00:00:00 2001 From: qiang Date: Sat, 18 Nov 2023 10:52:50 +0800 Subject: [PATCH] fix: import nuxt composables from #imports (#75) --- src/core/injection.ts | 2 +- src/core/teleports.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/injection.ts b/src/core/injection.ts index 84e9aeb..78b5750 100644 --- a/src/core/injection.ts +++ b/src/core/injection.ts @@ -8,7 +8,7 @@ export function resolveInjection (config: Options) { return { filename: `${libraryName}-injection.plugin.mjs`, getContents: () => { - return `import { defineNuxtPlugin } from '#app'; + return `import { defineNuxtPlugin } from '#imports'; import { ID_INJECTION_KEY } from 'element-plus'; export default defineNuxtPlugin(nuxtApp => { diff --git a/src/core/teleports.ts b/src/core/teleports.ts index 03359eb..260b182 100644 --- a/src/core/teleports.ts +++ b/src/core/teleports.ts @@ -8,7 +8,7 @@ export function resolveTeleports (config: Options) { return { filename: `${libraryName}-teleports.plugin.mjs`, getContents: () => { - return `import { defineNuxtPlugin } from '#app' + return `import { defineNuxtPlugin } from '#imports' export default defineNuxtPlugin((nuxtApp) => { nuxtApp.hook('app:rendered', (ctx) => {