-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Copy pathvite.config.mjs
40 lines (39 loc) · 961 Bytes
/
vite.config.mjs
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
import { makeConfig } from '../frontend-shared/vite.config.mjs'
import Layouts from 'vite-plugin-vue-layouts'
import Pages from 'vite-plugin-pages'
import Copy from 'rollup-plugin-copy'
import Legacy from '@vitejs/plugin-legacy'
import { resolve } from 'path'
export default makeConfig({
optimizeDeps: {
include: [
'javascript-time-ago',
'ansi-to-html',
'fuzzysort',
'@cypress-design/**',
'@cypress-design/vue-button',
'debug',
'p-defer',
'bluebird',
'events',
'@popperjs/core',
'@opentelemetry/*',
],
},
}, {
plugins: [
Layouts(),
Pages({ extensions: ['vue'] }),
Copy({
targets: [{
src: resolve(__dirname, '../frontend-shared/src/assets/logos/favicon.png'),
dest: 'dist',
}],
}),
Legacy({
targets: ['Chrome >= 80', 'Firefox >= 86', 'Edge >= 80'],
modernPolyfills: true,
renderLegacyChunks: false,
}),
],
})