diff --git a/packages/nuxt/src/core/templates.ts b/packages/nuxt/src/core/templates.ts index 30812c6181..297f7c49f6 100644 --- a/packages/nuxt/src/core/templates.ts +++ b/packages/nuxt/src/core/templates.ts @@ -341,9 +341,10 @@ import { defuFn } from 'defu' const inlineConfig = ${JSON.stringify(nuxt.options.appConfig, null, 2)} /** client **/ +import { updateAppConfig } from '#app/config' + // Vite - webpack is handled directly in #app/config if (import.meta.dev && !import.meta.nitro && import.meta.hot) { - const { updateAppConfig } = await import('#app/config') import.meta.hot.accept((newModule) => { updateAppConfig(newModule.default) })