This commit is contained in:
seb
2026-09-29 11:50:21 +02:00
parent ada455ea4f
commit 4cb050c285

View File

@@ -213,6 +213,7 @@ export default defineConfig(({ command }) => ({
emptyOutDir: false, emptyOutDir: false,
rolldownOptions: { rolldownOptions: {
output: { output: {
strictExecutionOrder: true,
codeSplitting: { codeSplitting: {
groups: [ groups: [
// Split the lazy routes into a handful of per-section chunks // Split the lazy routes into a handful of per-section chunks
@@ -241,30 +242,30 @@ export default defineConfig(({ command }) => ({
includeDependenciesRecursively: false, includeDependenciesRecursively: false,
}, },
{ {
priority: 110, priority: 150,
name: 'router-vendor',
test: /node_modules\/(react-router|react-router-dom)\//,
},
{
priority: 100,
name: 'react-vendor', name: 'react-vendor',
test: /node_modules\/(react|react-dom|scheduler)\//, test: /node_modules\/(react|react-dom|scheduler)\//,
}, },
{ {
priority: 110, priority: 140,
name: 'router-vendor',
test: /node_modules\/(react-router|react-router-dom)\//,
},
{
priority: 135,
name: 'mui-icons', name: 'mui-icons',
test: /node_modules\/@mui\/icons-material\//, test: /node_modules\/@mui\/icons-material\//,
}, },
{ {
priority: 105, priority: 130,
name: 'emotion-vendor',
test: /node_modules\/@emotion\//,
},
{
priority: 100,
name: 'mui-vendor', name: 'mui-vendor',
test: /node_modules\/@mui\//, test: /node_modules\/@mui\//,
}, },
{
priority: 125,
name: 'emotion-vendor',
test: /node_modules\/@emotion\//,
},
{ {
priority: 100, priority: 100,
name: 'jsquash-image', name: 'jsquash-image',