import { fileURLToPath, URL } from "node:url"; import { defineConfig } from "vitest/config"; import vue from "@vitejs/plugin-vue"; import vueJsx from "@vitejs/plugin-vue-jsx"; // https://vitejs.dev/config/ export default defineConfig({ test: { globals: true, environment: "jsdom", coverage: { provider: "c8", all: true, src: ["./src"], exclude: ["model/**", "**/__tests__/**"], reporter: ["text", "lcov", "html"], }, }, plugins: [vue(), vueJsx()], resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), }, }, build: { target: "esnext", // Or a recent target that supports BigInt literals rollupOptions: { external: ["@coinbase/wallet-sdk"], // Exclude from the bundle if needed }, }, });