diff --git a/packages/extension/vite.config.ts b/packages/extension/vite.config.ts index ec98efa..e1817e9 100644 --- a/packages/extension/vite.config.ts +++ b/packages/extension/vite.config.ts @@ -43,6 +43,23 @@ export default defineConfig({ // to vite's default low targets (chrome87/es2020). Safe for an MV3 // extension, whose runtime is a current Chromium. target: "es2022", + // No `` in the emitted HTML. Chrome refuses to + // use them here — "A preload for '…' is found, but is not used because it + // is a cross-world extension resource mismatch" — so each preloaded chunk + // was fetched once as a discarded hint and again for real, and the + // chrome://extensions Errors page filled with one warning per chunk per + // page (18 across popup, options, confirm and offscreen). + // + // Nothing was broken by them: the `