-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathvite.config.ts
More file actions
34 lines (33 loc) · 1.01 KB
/
Copy pathvite.config.ts
File metadata and controls
34 lines (33 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
export default defineConfig({
root: "ui",
plugins: [react()],
publicDir: "pub",
base: "/s/",
esbuild: {
// TODO(kellegous): everything in npm is always broken garbage.
// esbuild has a security advisory and I need to override esbuild
// to be >= 0.28.1. But there is no vite version that has that
// update yet. So I have to put an override in package.json ...
// but, of course, there is some jacked up shit in esbuild that
// is papered over in a later vite ... which I am not on, so now
// I have to paper over it too. Long story short, remove all this
// crap when the override is removed.
supported: {
destructuring: true,
},
},
build: {
outDir: "../internal/ui/assets",
chunkSizeWarningLimit: 10000,
assetsDir: ".",
emptyOutDir: true,
rollupOptions: {
input: {
edit: "./ui/edit/index.html",
links: "./ui/index.html",
},
},
},
});