Skip to content

Commit

Permalink
fix: compile logger correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Dec 5, 2024
1 parent d996855 commit ff535fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/runtime/logger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { consola } from 'consola'

export const logger = consola.withTag('nuxt:prismic')
2 changes: 1 addition & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createClient, type Client } from '@prismicio/client'
import { createPrismic } from '@prismicio/vue'

import type { PrismicModuleOptions } from '../types'
import { logger } from '../lib/logger'
import { logger } from './logger'
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 ff535fb

Please sign in to comment.