fix!: Update min WXT version to 0.20

This commit is contained in:
Aaron
2025-03-21 16:47:32 -05:00
parent 6f0b5c1925
commit ac640f4c41
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { defineAppConfig } from 'wxt/sandbox';
import { defineAppConfig } from 'wxt/utils/define-app-config';
import { googleAnalytics4 } from './modules/analytics/providers/google-analytics-4';
import { umami } from './modules/analytics/providers/umami';
@@ -1,5 +1,5 @@
import 'wxt';
import 'wxt/sandbox';
import 'wxt/utils/define-app-config';
import {
addAlias,
addViteConfig,
@@ -9,7 +9,7 @@ import {
import { relative, resolve } from 'node:path';
import type { AnalyticsConfig } from './types';
declare module 'wxt/sandbox' {
declare module 'wxt/utils/define-app-config' {
export interface WxtAppConfig {
analytics: AnalyticsConfig;
}
@@ -44,7 +44,7 @@ export default defineWxtModule({
? clientModuleId
: relative(wxtAnalyticsFolder, clientModuleId)
}';`,
`import { useAppConfig } from 'wxt/client';`,
`import { useAppConfig } from '#imports';`,
``,
`export const analytics = createAnalytics(useAppConfig().analytics);`,
``,
+1 -1
View File
@@ -48,7 +48,7 @@
"prepare": "buildc --deps-only -- wxt prepare"
},
"peerDependencies": {
"wxt": ">=0.19.23"
"wxt": ">=0.20.0"
},
"devDependencies": {
"@aklinker1/check": "catalog:",