fix: Deprecated useAppConfig in favour of getAppConfig (#2487)

Co-authored-by: Gliches <nishumurmu017@gmail.com>
Co-authored-by: Aaron <aaronklinker1@gmail.com>
This commit is contained in:
fkatsuhiro
2026-07-27 01:44:52 +09:00
committed by GitHub
parent 299b0add80
commit 9698f2fdd9
+8
View File
@@ -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();
}