This repository has been archived on 2024-03-17. You can view files and clone it, but cannot push or open issues or pull requests.
woj-ui/vite.config.ts

21 lines
567 B
TypeScript

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),
},
});