diff --git a/vite.config.js b/vite.config.js index 403d31a..02dc563 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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',