Skip to content

Commit

Permalink
style: prefer imports from #app
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Sep 16, 2024
1 parent 28ddc1a commit f9ecd6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/runtime/plugin.client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { PrismicModuleOptions } from '../types'
import { defineNuxtPlugin, refreshNuxtData, useRuntimeConfig } from '#imports'
import { defineNuxtPlugin } from '#app'
import { refreshNuxtData, useRuntimeConfig } from '#imports'

export default defineNuxtPlugin((_nuxtApp) => {
const options: PrismicModuleOptions = useRuntimeConfig().public.prismic
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { isRepositoryEndpoint, getRepositoryName, type Client } from '@prismicio/client'
import { createPrismic } from '@prismicio/vue'

import { defineNuxtPlugin } from 'nuxt/app'
import type { PrismicModuleOptions } from '../types'
import { defineNuxtPlugin } from '#app'
import NuxtLink from '#app/components/nuxt-link'
import { useCookie, useRequestEvent, onNuxtReady, refreshNuxtData, useHead, useRuntimeConfig, useRouter } from '#imports'

Expand Down

0 comments on commit f9ecd6a

Please sign in to comment.