From cafb3677a02e8da6bb40d9ee7da55a8c83d8ddb2 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 8 Nov 2023 11:05:25 +0000 Subject: [PATCH] fix: import nuxt composables from #imports (#398) --- docs/content/2.get-started/1.guide/3.migration-guide.md | 2 +- packages/nuxt/src/runtime/plugin.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/2.get-started/1.guide/3.migration-guide.md b/docs/content/2.get-started/1.guide/3.migration-guide.md index 726050e6..c9d64f5d 100644 --- a/docs/content/2.get-started/1.guide/3.migration-guide.md +++ b/docs/content/2.get-started/1.guide/3.migration-guide.md @@ -37,7 +37,7 @@ app.use(vfm) So this: ```ts [./plugins/vue-final-modal.ts] -import { defineNuxtPlugin } from '#app' +import { defineNuxtPlugin } from '#imports' import { vfmPlugin } from 'vue-final-modal' export default defineNuxtPlugin(nuxtApp => { diff --git a/packages/nuxt/src/runtime/plugin.ts b/packages/nuxt/src/runtime/plugin.ts index d6dd7e44..6562d994 100644 --- a/packages/nuxt/src/runtime/plugin.ts +++ b/packages/nuxt/src/runtime/plugin.ts @@ -1,5 +1,5 @@ import { createVfm } from 'vue-final-modal' -import { defineNuxtPlugin } from '#app' +import { defineNuxtPlugin } from '#imports' export default defineNuxtPlugin((nuxtApp) => { const vfm = createVfm()