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