main.ts
1 // // only on dev mode 2 // if (import.meta.hot) { 3 // // @ts-expect-error for background HMR 4 // import("/@vite/client"); 5 // // load latest content script 6 // import("./contentScriptHMR"); 7 // } 8 9 browser.runtime.onInstalled.addListener((): void => { 10 // eslint-disable-next-line no-console 11 console.log("Extension installed"); 12 });