@@ -4,7 +4,6 @@ import { join, relative, resolve } from 'pathe'
44import type { JSValue } from 'untyped'
55import { generateTypes , resolveSchema } from 'untyped'
66import escapeRE from 'escape-string-regexp'
7- import { resolveModulePath } from 'exsolve'
87import { hash } from 'ohash'
98import { camelCase } from 'scule'
109import { filename , reverseResolveAlias } from 'pathe/utils'
@@ -14,8 +13,6 @@ import { annotatePlugins, checkForCircularDependencies } from './app.ts'
1413import { EXTENSION_RE } from './utils/index.ts'
1514import type { NuxtOptions , NuxtTemplate , NuxtTypeTemplate } from 'nuxt/schema'
1615
17- const defuPath = resolveModulePath ( 'defu' , { try : true , from : import . meta. url } ) ?? 'defu'
18-
1916export const vueShim : NuxtTemplate = {
2017 filename : 'types/vue-shim.d.ts' ,
2118 getContents : ( { nuxt } ) => {
@@ -432,7 +429,7 @@ export const appConfigTemplate: NuxtTemplate = {
432429 getContents ( { app, nuxt } ) {
433430 return `
434431import { _replaceAppConfig } from '#app/config'
435- import { defuFn } from ${ JSON . stringify ( defuPath ) }
432+ import { defuFn } from 'defu'
436433
437434const inlineConfig = ${ JSON . stringify ( nuxt . options . appConfig , null , 2 ) }
438435
0 commit comments