-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
33 lines (32 loc) · 933 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
/* eslint-disable header/header */
import { defineConfig } from 'vite';
import * as path from 'path';
import importMetaUrlPlugin from '@codingame/esbuild-import-meta-url-plugin';
export default defineConfig(() => {
const config = {
build: {
target: 'esnext',
rollupOptions: {
input: {
index: path.resolve(__dirname, 'index.html'),
monacoClassic: path.resolve(__dirname, 'static/monacoClassic.html'),
monacoExtended: path.resolve(__dirname, 'static/monacoExtended.html'),
}
}
},
resolve: {
dedupe: ['vscode']
},
optimizeDeps: {
esbuildOptions: {
plugins: [
importMetaUrlPlugin
]
}
},
server: {
port: 5173
}
};
return config;
});