disable auto-imports

This commit is contained in:
Aaron
2024-07-09 11:22:35 -05:00
parent 5216d75209
commit ee53bb0a5e
4 changed files with 9 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
import { defineAppConfig } from 'wxt/sandbox';
import { googleAnalytics4 } from './modules/analytics/providers/google-analytics-4';
import { umami } from './modules/analytics/providers/umami';
@@ -1,3 +1,5 @@
import { analytics } from '@/modules/analytics/client';
declare const enabledCheckbox: HTMLInputElement;
analytics.autoTrack(document);
@@ -1,4 +1,5 @@
import { defineWxtPlugin } from 'wxt/sandbox';
import { storage } from 'wxt/storage';
import { useAppConfig } from 'wxt/client';
import {
Analytics,
@@ -8,6 +9,7 @@ import {
BaseAnalyticsEvent,
} from './types';
import uaParser from 'ua-parser-js';
import { browser } from 'wxt/browser';
export let analytics: Analytics;
const ANALYTICS_PORT = 'wxt-analytics';
+4
View File
@@ -1,6 +1,10 @@
import { defineConfig } from 'wxt';
export default defineConfig({
// Unimport doesn't look for imports in node_modules, so when developing a
// node module, we need to disable this.
imports: false,
manifest: {
name: 'Analytics Demo',
},