disable auto-imports
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user