Merge branch 'optimize' into shigusegubu-themes3
This commit is contained in:
commit
a753351fa5
1 changed files with 12 additions and 0 deletions
|
|
@ -165,6 +165,18 @@ export default defineConfig(async ({ mode, command }) => {
|
||||||
}),
|
}),
|
||||||
...(mode === 'test' ? [mswPlugin()] : []),
|
...(mode === 'test' ? [mswPlugin()] : []),
|
||||||
],
|
],
|
||||||
|
optimizeDeps: {
|
||||||
|
// For unknown reasons, during vitest, vite will re-optimize the following
|
||||||
|
// deps, causing the test to reload, so add them here so that it will not
|
||||||
|
// reload during tests
|
||||||
|
include: [
|
||||||
|
'custom-event-polyfill',
|
||||||
|
'vue-i18n',
|
||||||
|
'@ungap/event-target',
|
||||||
|
'body-scroll-lock',
|
||||||
|
'@kazvmoe-infra/pinch-zoom-element',
|
||||||
|
],
|
||||||
|
},
|
||||||
css: {
|
css: {
|
||||||
devSourcemap: true,
|
devSourcemap: true,
|
||||||
transformer: 'lightningcss',
|
transformer: 'lightningcss',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue