forked from opossum-tool/OpossumUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.mts
More file actions
28 lines (27 loc) · 808 Bytes
/
vite.config.mts
File metadata and controls
28 lines (27 loc) · 808 Bytes
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
// SPDX-FileCopyrightText: Meta Platforms, Inc. and its affiliates
// SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
//
// SPDX-License-Identifier: Apache-2.0
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import electron from 'vite-plugin-electron';
import svgrPlugin from 'vite-plugin-svgr';
import viteTsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig(({ mode }) => ({
plugins: [
react(),
viteTsconfigPaths(),
svgrPlugin(),
...(mode === 'e2e'
? []
: electron({
entry: 'src/ElectronBackend/main/main.ts',
})),
],
build: {
outDir: 'build',
},
optimizeDeps: {
include: ['@mui/material/Tooltip'], // https://github.com/mui/material-ui/issues/32727
},
}));