// SPDX-License-Identifier: AGPL-3.0-or-later import { resolve } from "node:path"; import { defineConfig } from "vitest/config"; // The extension's pages (popup and options) as ES modules; public/ holds the // manifest and icons, copied as they are. Load dist/ as an unpacked extension. export default defineConfig({ root: "src", publicDir: "../public", base: "./", build: { outDir: "../dist", emptyOutDir: true, target: "es2022", // Extension stores review the code: keep it readable. minify: false, rollupOptions: { input: { popup: resolve(import.meta.dirname, "src/popup.html"), options: resolve(import.meta.dirname, "src/options.html"), }, }, }, test: { root: ".", environment: "jsdom", }, });