-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.js
47 lines (46 loc) · 1.22 KB
/
vite.config.js
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
35
36
37
38
39
40
41
42
43
44
45
46
47
/** @type {import('vite').UserConfig} */
import { defineConfig } from 'vite';
import { resolve } from 'path';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig(() => {
const config = {
plugins: [tsconfigPaths()],
build: {
outDir: 'build',
chunkSizeWarningLimit: 5000,
rollupOptions: {
output: {
manualChunks: id => {
if (id.includes('monaco-languageclient')) {
return 'monaco';
}
}
}
}
},
esbuild: {
target: 'esnext',
tsconfigRaw: {
compilerOptions: {
experimentalDecorators: true,
emitDecoratorMetadata: true
}
}
},
server: {
port: 3000,
open: false,
sourcemapIgnoreList(sourcePath, sourcemapPath) {
return sourcePath.includes('node_modules') && !sourcePath.includes('@eclipse-glsp') && !sourcePath.includes('@axonivy');
}
},
base: './',
optimizeDeps: {
needsInterop: [
'monaco-editor/esm/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp.js',
'monaco-editor/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.js'
]
}
};
return config;
});