chore(config): comment out minifyInternalExports and manualChunks options
Some checks failed
/ lint-build-and-check (push) Successful in 5m43s
/ build-and-deploy-to-vercel (push) Successful in 5m47s
/ cleanup_surge (push) Has been skipped
/ surge (push) Successful in 3m9s
/ playwright (push) Failing after 11m28s

This commit is contained in:
严浩
2025-06-22 14:40:48 +08:00
parent d5001e0e05
commit c9efa9ddf1

View File

@ -56,7 +56,7 @@ export default defineConfig(({ command, mode }) => {
// https://cn.rollupjs.org/configuration-options/#output-assetfilenames
// output: env.VITE_SPLIT_CHUNKS === 'true' ? (await import('utils4u/rollup')).createSplitChunkOutput() : undefined,
output: {
minifyInternalExports: false,
// minifyInternalExports: false,
// manualChunks: {
// 'vendor/utils4u': ['utils4u', 'utils4u/vue-use', 'utils4u/primevue'],
// 'vendor/vue': ['vue'],
@ -70,6 +70,14 @@ export default defineConfig(({ command, mode }) => {
manualChunks: {
'vendor/Cesium': ['cesium'],
},
// advancedChunks: {
// groups: [
// {
// name: 'vendor/cesium',
// test: 'cesium',
// },
// ],
// },
},
},
sourcemap: mode !== 'production' || env.VITE_SOURCE_MAP === 'true',