-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvite.config.ts
33 lines (30 loc) · 930 Bytes
/
vite.config.ts
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
import { vitePlugin as remix, cloudflareDevProxyVitePlugin as remixCloudflareDevProxy } from '@remix-run/dev';
import { sentryVitePlugin } from '@sentry/vite-plugin';
import { defineConfig } from 'vite';
import svgrPlugin from 'vite-plugin-svgr';
import tsconfigPaths from 'vite-tsconfig-paths';
import { getLoadContext } from './load-context';
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 3000,
},
plugins: [
remixCloudflareDevProxy({ getLoadContext }),
tsconfigPaths(),
svgrPlugin({ svgrOptions: { icon: true } }),
remix({
ignoredRouteFiles: ['**/*.css', '**/*.{json,css}', '**/components/**', '**/*.spec.{ts,tsx}'],
}),
process.env.SENTRY_AUTH_TOKEN &&
sentryVitePlugin({
org: 'zed-themes',
project: 'zed-themes',
url: 'https://sentry.io/',
telemetry: false,
}),
],
build: {
sourcemap: true,
},
});