import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";
import { sentryVitePlugin } from "@sentry/vite-plugin";
import packageJson from "./package.json";
// https://vitejs.dev/config/
export default defineConfig({
build: { sourcemap: true },
plugins: [
react(),
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: "0x7f",
project: "woj-ui",
}),
],
define: {
"import.meta.env.PACKAGE_VERSION": JSON.stringify(packageJson.version),
},
});