switch to vite + crxjs, million.js and sentry plugin

This commit is contained in:
SethBurkart123
2024-03-21 21:44:14 +11:00
parent 340622c558
commit c8894d7b99
7 changed files with 75 additions and 45 deletions
+24
View File
@@ -0,0 +1,24 @@
import { defineConfig } from 'vite'
import { crx } from '@crxjs/vite-plugin'
import million from "million/compiler"
import manifest from './manifest.json'
import react from '@vitejs/plugin-react-swc'
import { sentryVitePlugin } from "@sentry/vite-plugin";
export default defineConfig({
plugins: [
react(),
million.vite({}),
crx({ manifest }),
sentryVitePlugin({
org: process.env.SENTRY_ORG,
project: 'betterseqtaplus-main',
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
sentryVitePlugin({
org: process.env.SENTRY_ORG,
project: 'betterseqtaplus-popup',
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
],
})