Skip to content

Commit

Permalink
fix(nuxt): do not auto-import toRef and toValue
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 14, 2023
1 parent 138b278 commit 9225fc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/nuxt/index.ts
Expand Up @@ -8,8 +8,13 @@ import type { Import, Preset } from 'unimport'
const _dirname = dirname(fileURLToPath(import.meta.url))

const disabledFunctions = [
'useFetch',
// Vue 3 built-in
'toRefs',
'toRef',
'toValue',

// Nuxt built-in
'useFetch',
'useCookie',
'useHead',
'useTitle',
Expand Down

0 comments on commit 9225fc7

Please sign in to comment.