mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
build: switch minifier from esbuild to oxc and remove enforce option from chunks
This commit is contained in:
@@ -101,7 +101,7 @@ export default defineConfig({
|
||||
build: {
|
||||
sourcemap: true,
|
||||
target: 'esnext',
|
||||
minify: 'esbuild',
|
||||
minify: 'oxc',
|
||||
chunkSizeWarningLimit: 1000,
|
||||
rollupOptions: {
|
||||
output: { // @ts-ignore
|
||||
@@ -111,13 +111,11 @@ export default defineConfig({
|
||||
name: 'vue-vendor',
|
||||
test: /[\\/]node_modules[\\/](vue|vue-router|pinia)[\\/]/,
|
||||
priority: -10,
|
||||
enforce: true,
|
||||
},
|
||||
{
|
||||
name: 'ui-vendor',
|
||||
test: /[\\/]node_modules[\\/](naive-ui|@vueuse[\\/]core)[\\/]/,
|
||||
priority: -10,
|
||||
enforce: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user