We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ae5fb5 commit 1fe0730Copy full SHA for 1fe0730
1 file changed
packages/analytics/modules/analytics/index.ts
@@ -8,6 +8,7 @@ import {
8
} from 'wxt/modules';
9
import { relative, resolve } from 'node:path';
10
import type { AnalyticsConfig } from './types';
11
+import { normalizePath } from 'wxt';
12
13
declare module 'wxt/utils/define-app-config' {
14
export interface WxtAppConfig {
@@ -42,7 +43,7 @@ export default defineWxtModule({
42
43
`import { createAnalytics } from '${
44
process.env.NPM
45
? clientModuleId
- : relative(wxtAnalyticsFolder, clientModuleId)
46
+ : normalizePath(relative(wxtAnalyticsFolder, clientModuleId))
47
}';`,
48
`import { useAppConfig } from '#imports';`,
49
``,
0 commit comments