diff --git a/packages/wxt/src/utils/app-config.ts b/packages/wxt/src/utils/app-config.ts index c8c0ad77..a520d0fd 100644 --- a/packages/wxt/src/utils/app-config.ts +++ b/packages/wxt/src/utils/app-config.ts @@ -15,8 +15,16 @@ export function getAppConfig(): WxtAppConfig { /** * Alias for {@link getAppConfig}. * + * @deprecated Use {@link getAppConfig} instead. Same function, different name. * @see https://wxt.dev/guide/essentials/config/runtime.html */ export function useAppConfig(): WxtAppConfig { + // After v1.0 this function will be removed, and migrate to use only `getAppConfig` instead. + if (import.meta.env.DEV) { + console.warn( + '[wxt] `useAppConfig` is deprecated. Please use `getAppConfig` instead.', + ); + } + return getAppConfig(); }